add ability to pass in user from environment variable
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-12-08 03:22:04 -06:00
parent 2cfb458604
commit 65ab1e9d27

View File

@@ -0,0 +1,7 @@
#!/bin/sh
HTPASSWD=/etc/nginx/htpasswd
touch $HTPASSWD
if [ "$GOATBIN_USER" ]; then
echo $GOATBIN_USER >> $HTPASSWD
fi