diff --git a/nginx/scripts/docker_entrypoint.sh b/nginx/scripts/docker_entrypoint.sh index b931e15cf..ceb2cf29e 100755 --- a/nginx/scripts/docker_entrypoint.sh +++ b/nginx/scripts/docker_entrypoint.sh @@ -238,7 +238,8 @@ EOF fi # basic vs. ldap if [[ ! -f /etc/nginx/auth/htpasswd ]]; then - cp /etc/nginx/auth/default/htpasswd /etc/nginx/auth/ + cp /tmp/auth/default/htpasswd /etc/nginx/auth/ + rm -rf /tmp/auth/* fi # start supervisor (which will spawn nginx, stunnel, etc.) or whatever the default command is