From e58bd60bf476e6d83c1f8bf4b5ab948df67e7ceb Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 7 Jun 2022 23:19:35 +0200 Subject: [PATCH] fix upgrade from same version --- scripts/upgrade | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4b94ab4..5b1fe59 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,13 +74,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path" # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 +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/build" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$final_path/build" chmod 750 "$final_path" chmod -R o-rwx "$final_path"