mirror of
https://github.com/restic/rest-server.git
synced 2026-09-27 06:21:28 -07:00
Merge pull request #86 from rafacouto/bugfix-issue#85
Fix docker create_user script error when reading password from command line.
This commit is contained in:
+7
-1
@@ -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