1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/elabftw_ynh.git synced 2024-09-03 18:26:23 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-08-12 18:12:30 +02:00
parent bd2805b960
commit 7275eaef02
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -22,6 +22,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
secret_key=$(ynh_app_setting_get --app=$app --key=secret_key)
#=================================================
# CHECK VERSION
@ -113,10 +114,10 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
# MODIFY A CONFIG FILE
#=================================================
ynh_add_config --template="../conf/database.php" --destination="$final_path/app/Config/database.php"
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
chmod 400 "$final_path/app/Config/database.php"
chown $app "$final_path/app/Config/database.php"
chmod 400 "$final_path/config.php"
chown $app "$final_path/config.php"
#=================================================
# GENERIC FINALIZATION