From 847e9de83d9d2c6d280ea994f9ecdc868c9716c8 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Fri, 22 Dec 2023 15:44:21 +0100 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5c2703d..7b7ae03 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,13 +56,12 @@ fi #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= + if [ "$upgrade_type" == "UPGRADE_APP" ] + then ynh_script_progression --message="Upgrading source files..." --weight=5 - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep=".config/default.yml" - pushd $install_dir chown -R $app:www-data "$install_dir" @@ -119,6 +118,14 @@ ynh_add_systemd_config #================================================= # GENERIC FINALIZATION #================================================= + +#================================================= +# MODIFY A CONFIG FILE +#================================================= +ynh_script_progression --message="Modifying a config file..." --weight=1 + + ynh_setup_source --dest_dir="$install_dir" --keep=".config/default.yml" + # SETUP LOGROTATE #================================================= ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1