1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

Less verbose wget, added caperm option to curl

This commit is contained in:
Rémy Garrigue 2015-08-21 09:02:01 +00:00
parent 3d80c3f922
commit b9ef11fdcc

View file

@ -39,7 +39,7 @@ sudo yunohost app setting $app mysqlpwd -v $db_password
# Get sources
cd /tmp
sudo wget http://download.dotclear.org/latest.tar.gz -O $app.tgz
sudo wget -nv http://download.dotclear.org/latest.tar.gz -O $app.tgz
sudo tar xf $app.tgz
sudo mv dotclear $directory
sudo rm -f $app.tgz
@ -66,7 +66,7 @@ sudo service nginx reload
sudo yunohost app ssowatconf
# Setting first user details and filling database calling admin/install/index.php
success=`curl -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 --caperm /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 or not success
if [ `echo $success | grep -c success` -gt 0 ]