diff --git a/scripts/install b/scripts/install index e84eab2..2bb1de3 100755 --- a/scripts/install +++ b/scripts/install @@ -60,7 +60,7 @@ do done #################################################### -# Create a mysql database and configure galette # +# Create a mysql database # #################################################### # Generate random password @@ -73,17 +73,6 @@ db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' sudo yunohost app initdb $db_user -p $db_pwd sudo yunohost app setting $app mysqlpassword -v $db_pwd -# Install mechanize to have a browser in a python script - -sudo pip install mechanize - -# Then call python script to fill galette php installer with the right info - -# todo : replace last password by user-specified pass -sudo python initialConf.py $domain$path $db_pwd $admin $db_pwd - -sudo rm -rf $final_path/install - #################################################### # Nginx configuration # #################################################### @@ -109,3 +98,20 @@ fi sudo service nginx reload sudo yunohost app ssowatconf +#################################################### +# Call galette php installer and fill the form # +#################################################### + +# Install mechanize to have a browser in a python script + +sudo pip install mechanize + +# Then call python script to fill galette php installer with the right info + +# todo : replace last password by user-specified pass +sudo python initialConf.py $domain$path $db_pwd $admin $db_pwd + +# Delete the install folder as advised by galette php installer +sudo rm -rf $final_path/install + +