create_user/delete_user: quote user and filename

This commit is contained in:
Michael Eischer 2025-04-14 20:48:11 +02:00
parent 4f17744d6c
commit 19aa0845c0
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -5,4 +5,4 @@ if [ -z "$1" ]; then
exit 1
fi
htpasswd -D $PASSWORD_FILE $1
htpasswd -D "$PASSWORD_FILE" "$1"