mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Merge pull request #334 from stemid/patch-1
Support passwords with spaces in docker container
This commit is contained in:
commit
fa15677855
2 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@ fi
|
||||||
|
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
# password from prompt
|
# password from prompt
|
||||||
htpasswd -B $PASSWORD_FILE $1
|
htpasswd -B "$PASSWORD_FILE" "$1"
|
||||||
else
|
else
|
||||||
# read password from command line
|
# read password from command line
|
||||||
htpasswd -B -b $PASSWORD_FILE $1 $2
|
htpasswd -B -b "$PASSWORD_FILE" "$1" "$2"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5,4 +5,4 @@ if [ -z "$1" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
htpasswd -D $PASSWORD_FILE $1
|
htpasswd -D "$PASSWORD_FILE" "$1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue