add ability to pass in user from environment variable
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
7
docker-entrypoint.d/07-create-htpasswd.sh
Executable file
7
docker-entrypoint.d/07-create-htpasswd.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
HTPASSWD=/etc/nginx/htpasswd
|
||||||
|
touch $HTPASSWD
|
||||||
|
|
||||||
|
if [ "$GOATBIN_USER" ]; then
|
||||||
|
echo $GOATBIN_USER >> $HTPASSWD
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user