Files
goatbin/docker-entrypoint.d/07-create-htpasswd.sh
Gregory Marco 65ab1e9d27
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
add ability to pass in user from environment variable
2024-12-08 03:22:04 -06:00

8 lines
124 B
Bash
Executable File

#!/bin/sh
HTPASSWD=/etc/nginx/htpasswd
touch $HTPASSWD
if [ "$GOATBIN_USER" ]; then
echo $GOATBIN_USER >> $HTPASSWD
fi