doc: spice-example-sh: support special characters in passwords

This commit is contained in:
Wolfgang Bumiller 2017-09-25 10:56:03 +02:00 committed by Fabian Grünbichler
parent 52a450d619
commit 765bba6ca6

View File

@ -59,7 +59,7 @@ fi
NODE="${NODE%%\.*}"
DATA="$(curl -f -s -S -k -d "username=$USERNAME&password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")"
DATA="$(curl -f -s -S -k --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")"
echo "AUTH OK"