1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galette_ynh.git synced 2024-09-03 18:36:28 +02:00

Fix time at which php installer is called

This commit is contained in:
Alexandre Aubin 2015-10-24 13:19:18 +02:00
parent a4db675a74
commit 091f92379b

View file

@ -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