mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Essai d'un appel curl façon yunohost wordpress app
This commit is contained in:
parent
79b99ded61
commit
57d3a821fa
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ sudo service nginx reload
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
||||||
# Setting first user details and filling database calling admin/install/index.php
|
# Setting first user details and filling database calling admin/install/index.php
|
||||||
success=`curl --cacert /etc/yunohost/certs/$domain/ca.pem -F "u_email=$EMAIL" -F "u_firstname=$FIRSTNAME" -F "u_name=$NAME" -F "u_login=$LOGIN" -F "u_pwd=$admin_password" -F "u_pwd2=$admin_password" -F "u_date=$TZ" https://$domain$path/admin/install/index.php`
|
|
||||||
|
# success=`curl -L --cacert /etc/yunohost/certs/$domain/ca.pem -F "u_email=$EMAIL" -F "u_firstname=$FIRSTNAME" -F "u_name=$NAME" -F "u_login=$LOGIN" -F "u_pwd=$admin_password" -F "u_pwd2=$admin_password" -F "u_date=$TZ" https://$domain$path/admin/install/index.php`
|
||||||
|
|
||||||
|
success=`curl -L --cacert /etc/yunohost/certs/$domain/ca.pem -H 'Host: $domain' -X POST --data '?u_email=$EMAIL&u_firstname=$FIRSTNAME&u_name=$NAME&u_login=$LOGIN&u_pwd=$admin_password&u_pwd2=$admin_password&u_date=$TZ" https://$domain$path/admin/install/index.php`
|
||||||
|
|
||||||
# Success or not success
|
# Success or not success
|
||||||
if [ `echo $success | grep -c success` -gt 0 ]
|
if [ `echo $success | grep -c success` -gt 0 ]
|
||||||
|
|
Loading…
Reference in a new issue