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:
parent
a4db675a74
commit
091f92379b
1 changed files with 18 additions and 12 deletions
|
@ -60,7 +60,7 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
# Create a mysql database and configure galette #
|
# Create a mysql database #
|
||||||
####################################################
|
####################################################
|
||||||
|
|
||||||
# Generate random password
|
# 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 initdb $db_user -p $db_pwd
|
||||||
sudo yunohost app setting $app mysqlpassword -v $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 #
|
# Nginx configuration #
|
||||||
####################################################
|
####################################################
|
||||||
|
@ -109,3 +98,20 @@ fi
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo yunohost app ssowatconf
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue