1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00

Fix curl command

+ prefer --data-urlencode over -d
+ prefer double quotes for var
This commit is contained in:
ewilly 2016-04-21 06:49:31 +02:00
parent e7036b0242
commit 9aa539104a

View file

@ -92,10 +92,10 @@ sudo yunohost app ssowatconf
## fill the superadmin creation form
curl_path=$([ "$path" == "/" ] || echo $path)
curl -k -X POST \
-d creation="1" \
-d login=$admin \
-d pass=$password \
-d confirm=$password \
--data-urlencode creation="1" \
--data-urlencode login="$admin" \
--data-urlencode pass="$password" \
--data-urlencode confirm="$password" \
https://$domain$curl_path/index.php?p=admin > /dev/null 2>&1
# if app is private, remove url to SSOWat conf from skipped_uris