mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Trying to get the curl call to work
This commit is contained in:
parent
57d3a821fa
commit
ccbe968631
2 changed files with 16 additions and 20 deletions
|
@ -1,18 +1,16 @@
|
||||||
location YNH_WWW_PATH {
|
location YNH_WWW_PATH {
|
||||||
alias YNH_WWW_ALIAS;
|
alias YNH_WWW_ALIAS;
|
||||||
if ($scheme = http) {
|
index index.php;
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
location ~ [^/]\.php(/|$) {
|
||||||
}
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
index index.php;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
try_files $uri $uri/ index.php;
|
fastcgi_index index.php;
|
||||||
location ~ [^/]\.php(/|$) {
|
include fastcgi_params;
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_param REMOTE_USER $remote_user;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_index index.php;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
include fastcgi_params;
|
}
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
# Include SSOWAT user panel.
|
||||||
}
|
# include conf.d/yunohost_panel.conf.inc;
|
||||||
# Include SSOWAT user panel.
|
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,10 +65,8 @@ 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 -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 -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=`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