From a4de71c4b3ff6a2b4b8af808904564d269b3ff79 Mon Sep 17 00:00:00 2001 From: Melanie Pierce <59747276+piercema@users.noreply.github.com> Date: Mon, 3 Apr 2023 13:09:11 -0600 Subject: [PATCH] Mount default auth to tmp directory for idaholab/Malcolm#168 --- nginx/scripts/docker_entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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