From 9c4f38d5e73971f2a5034fd0f4a5a80f53cb8df5 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 27 Sep 2022 20:12:31 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3389ece..c284833 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -112,14 +112,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." -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/live" --keep="config/diaspora.yml config/database.yml" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$final_path/live" --keep="config/diaspora.yml config/database.yml" chmod 750 "$final_path" chmod -R o-rwx "$final_path"