mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 01:26:18 -08:00
docker: use bcrypt in create_users script
This was missed when adding bcrypt support in rest-server 0.9.7
This commit is contained in:
@@ -9,8 +9,8 @@ fi
|
|||||||
|
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
# password from prompt
|
# password from prompt
|
||||||
htpasswd -s $PASSWORD_FILE $1
|
htpasswd -B $PASSWORD_FILE $1
|
||||||
else
|
else
|
||||||
# read password from command line
|
# read password from command line
|
||||||
htpasswd -s -b $PASSWORD_FILE $1 $2
|
htpasswd -B -b $PASSWORD_FILE $1 $2
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user