From ad366f674195e6fba7f978ccae72904e48de07d5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 18 Jun 2021 08:56:04 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index d3a497c..8f892f3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,8 +78,11 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=6 + # Remove the app directory securely + ynh_secure_remove --file="$final_path" + # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --keep="$final_path/admin/cli/upgrade.php" + ynh_setup_source --dest_dir="$final_path" fi chmod 750 "$final_path"