mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Merge pull request #143 from MichaelEischer/docker-create-bcrypt
docker: use bcrypt in create_users script
This commit is contained in:
commit
5be12cecbf
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ fi
|
|||
|
||||
if [ -z "$2" ]; then
|
||||
# password from prompt
|
||||
htpasswd -s $PASSWORD_FILE $1
|
||||
htpasswd -B $PASSWORD_FILE $1
|
||||
else
|
||||
# read password from command line
|
||||
htpasswd -s -b $PASSWORD_FILE $1 $2
|
||||
htpasswd -B -b $PASSWORD_FILE $1 $2
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue