From f364b09117a9983bc5159445668e6d06821dadc1 Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 2 Feb 2023 01:06:52 +0700 Subject: [PATCH] Update upgrade --- scripts/upgrade | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 34a204c..1300fbd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,16 +84,11 @@ ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Cleaning up files..." --weight=1 - # Void and recreate final_path - ynh_secure_remove --file="$final_path" - ynh_exec_warn_less mkdir "$final_path" - +then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + ynh_setup_source --dest_dir="$final_path" --full_replace=1 fi chmod 750 "$final_path"