10 lines
368 B
Bash
10 lines
368 B
Bash
#!/bin/bash
|
|
echo "Running custom LDAP entrypoint script..."
|
|
|
|
if [ ! -f /opt/bitnami/openldap/share/openldap.key ]
|
|
then
|
|
openssl req -x509 -newkey rsa:4096 -keyout /opt/bitnami/openldap/share/openldap.key -out /opt/bitnami/openldap/share/openldap.crt -sha256 -days 365 -batch -nodes
|
|
fi
|
|
# run original docker-entrypoint
|
|
/opt/bitnami/scripts/openldap/entrypoint.sh "$@"
|