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:
parent
e7036b0242
commit
9aa539104a
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue