Fix docker create_user script error when reading password from command line.
This commit is contained in:
rawtaz
2019-12-18 23:55:23 +01:00
committed by GitHub

View File

@@ -7,4 +7,10 @@ if [ -z "$1" ]; then
exit 1
fi
htpasswd -s $PASSWORD_FILE $1 $2
if [ -z "$2" ]; then
# password from prompt
htpasswd -s $PASSWORD_FILE $1
else
# read password from command line
htpasswd -s -b $PASSWORD_FILE $1 $2
fi