mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Swapped SSO reload and curl setup to fix the private install
This commit is contained in:
parent
796248311a
commit
3441a93c0c
1 changed files with 5 additions and 4 deletions
|
@ -59,14 +59,15 @@ then
|
|||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
fi
|
||||
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo /etc/init.d/nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
||||
# 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=$lastname" -F "u_login=$admin" -F "u_pwd=$admin_password" -F "u_pwd2=$admin_password" -F "u_date=$timezone" 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=$timezone' https://$domain$path/admin/install/index.php`
|
||||
|
||||
# Now that we curl'ed the setup we can lock the UI if it's private
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo /etc/init.d/nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
||||
# Success or not success
|
||||
if [ `echo $success | grep -c success` -gt 0 ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue