We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a175482 commit 13d9046Copy full SHA for 13d9046
docker-entrypoint.sh
@@ -28,8 +28,7 @@ sed -i -E 's|^(ldap_servers:[[:blank:]]*).*|\1'"$LDAP_SERVERS"'|' /etc/saslauthd
28
&& sed -i -E 's/^(ldap_password:[[:blank:]]*).*/\1'"$LDAP_PASSWORD"'/' /etc/saslauthd.conf
29
30
# If initial configuration and database does not exists in volumes
31
-slaptest -f /usr/local/var/openldap-data/DB_CONFIG
32
-if [ $? != 0 ]
+if [ ! -f /usr/local/var/openldap-data/DB_CONFIG ]
33
then
34
echo "Creating initial database..."
35
cp /opt/openldap-init/DB_CONFIG.example /usr/local/var/openldap-data/DB_CONFIG
0 commit comments