mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Patch to issue #85 (Docker create_user script error when reading password as argument).
This commit is contained in:
committed by
Leo R. Lundgren
parent
a87d968870
commit
13cae78c8f
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user