From b9ef11fdccf182e94dc22bc7bc466c73a5749ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Garrigue?= Date: Fri, 21 Aug 2015 09:02:01 +0000 Subject: [PATCH] Less verbose wget, added caperm option to curl --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index b30f58e..28ccce5 100755 --- a/scripts/install +++ b/scripts/install @@ -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 ]