From 7275eaef02766c8f06812b0f75e5c2ab8a3f4416 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 12 Aug 2021 18:12:30 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2e119ab..81ff6a1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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