diff --git a/docker-entrypoint.d/07-create-htpasswd.sh b/docker-entrypoint.d/07-create-htpasswd.sh new file mode 100755 index 0000000..353d47e --- /dev/null +++ b/docker-entrypoint.d/07-create-htpasswd.sh @@ -0,0 +1,7 @@ +#!/bin/sh +HTPASSWD=/etc/nginx/htpasswd +touch $HTPASSWD + +if [ "$GOATBIN_USER" ]; then + echo $GOATBIN_USER >> $HTPASSWD +fi