From 2c19aa9a262fc51acc126ad719cb2b6fb102489d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 4 Jun 2022 16:11:34 +0200 Subject: [PATCH] Fix upgrade from previous version --- scripts/upgrade | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index ffdba45..acf7b35 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,14 +74,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -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" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path"