From b43746d5de2748ac2cb5cd8638ebda252ba3e58f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 10 Oct 2021 07:41:57 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index ee1d44b..0caa80b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,6 +78,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=10 + # Create a temporary directory + tmpdir="$(mktemp -d)" + cp -a "$final_path/config/config.json" "$tmpdir/config.json" # Remove the app directory securely ynh_secure_remove --file=$final_path