From a4c722fd08e10f8e1af15253ce90d593c9252178 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 18 Dec 2021 23:47:19 +0100 Subject: [PATCH] Update config.xml in upgrade --- scripts/upgrade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index eee93d9..8e93e0c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -22,6 +22,7 @@ admin=$(ynh_app_setting_get --app=$app --key=admin) port=$(ynh_app_setting_get --app=$app --key=port) final_path=$(ynh_app_setting_get --app=$app --key=final_path) data_path=$(ynh_app_setting_get --app=$app --key=data_path) +api_key=$(ynh_app_setting_get --app=$app --key=api_key) #================================================= # CHECK VERSION @@ -131,6 +132,13 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config ynh_add_systemd_config +#================================================= +# UPDATE A CONFIG FILE +#================================================= +ynh_script_progression --message="Updating the configuration file.." --weight=1 + +ynh_add_config --template="../conf/config.xml" --destination="$data_path/config.xml" + #================================================= # GENERIC FINALIZATION #=================================================