From 39fadf2ab03fb085f06f20b612c124f755ca73b3 Mon Sep 17 00:00:00 2001 From: AngusMcGyver <56880439+AngusMcGyver@users.noreply.github.com> Date: Thu, 5 Aug 2021 00:10:58 +0200 Subject: [PATCH] Update entrypoint.sh (#58) Fix for #47 https://github.com/adferrand/docker-backuppc/issues/47 --- files/entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/entrypoint.sh b/files/entrypoint.sh index dd38dd7..e9f5939 100755 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -94,6 +94,7 @@ if [ -f /firstrun ]; then sed -i 's#LDAP_HOSTNAME#'"$LDAP_HOSTNAME"'#g' /etc/lighttpd/auth-ldap.conf sed -i 's#LDAP_BASE_DN#'"$LDAP_BASE_DN"'#g' /etc/lighttpd/auth-ldap.conf + LDAP_FILTER=$(sed 's#&#\\&#g' <<< "$LDAP_FILTER") sed -i 's#LDAP_FILTER#'"$LDAP_FILTER"'#g' /etc/lighttpd/auth-ldap.conf sed -i 's#LDAP_BIND_DN#'"$LDAP_BIND_DN"'#g' /etc/lighttpd/auth-ldap.conf sed -i 's#LDAP_BIND_PW#'"$LDAP_BIND_PW"'#g' /etc/lighttpd/auth-ldap.conf