From 9aa539104ae991d449be962ae52bd2169053a61b Mon Sep 17 00:00:00 2001 From: ewilly Date: Thu, 21 Apr 2016 06:49:31 +0200 Subject: [PATCH] Fix curl command + prefer --data-urlencode over -d + prefer double quotes for var --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index ced092d..7e67db7 100644 --- a/scripts/install +++ b/scripts/install @@ -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