From 091f92379b503a67ec1d0c909649f4dd7237fb09 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 24 Oct 2015 13:19:18 +0200 Subject: [PATCH] Fix time at which php installer is called --- scripts/install | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) 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 + +