Patch to issue #85 (Docker create_user script error when reading password as argument).

This commit is contained in:
Rafa Couto
2019-07-19 16:43:45 +02:00
committed by Leo R. Lundgren
parent a87d968870
commit 13cae78c8f

View File

@@ -7,4 +7,10 @@ if [ -z "$1" ]; then
exit 1 exit 1
fi 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