Merge pull request #334 from stemid/patch-1

Support passwords with spaces in docker container
This commit is contained in:
Michael Eischer 2025-04-14 20:52:01 +02:00 committed by GitHub
commit fa15677855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -9,8 +9,8 @@ fi
if [ -z "$2" ]; then
# password from prompt
htpasswd -B $PASSWORD_FILE $1
htpasswd -B "$PASSWORD_FILE" "$1"
else
# read password from command line
htpasswd -B -b $PASSWORD_FILE $1 $2
htpasswd -B -b "$PASSWORD_FILE" "$1" "$2"
fi

View file

@ -5,4 +5,4 @@ if [ -z "$1" ]; then
exit 1
fi
htpasswd -D $PASSWORD_FILE $1
htpasswd -D "$PASSWORD_FILE" "$1"