mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
create_user/delete_user: quote user and filename
This commit is contained in:
parent
4f17744d6c
commit
19aa0845c0
2 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@ fi
|
|||
|
||||
if [ -z "$2" ]; then
|
||||
# password from prompt
|
||||
htpasswd -B $PASSWORD_FILE $1
|
||||
htpasswd -B "$PASSWORD_FILE" "$1"
|
||||
else
|
||||
# read password from command line
|
||||
htpasswd -B -b $PASSWORD_FILE $1 "$2"
|
||||
htpasswd -B -b "$PASSWORD_FILE" "$1" "$2"
|
||||
fi
|
||||
|
|
|
@ -5,4 +5,4 @@ if [ -z "$1" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
htpasswd -D $PASSWORD_FILE $1
|
||||
htpasswd -D "$PASSWORD_FILE" "$1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue