From 9ebe46347eea33a5d3b5e7b2510e289927f6d9ed Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 24 Mar 2021 19:33:03 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b0122e3..47428fd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -188,21 +188,21 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=4 - # Create a temporary directory - tmpdir="$(mktemp -d)" - # Backup the config file in the temp dir - cp -a "$final_path/settings.json" "$tmpdir/settings.json" + # # Create a temporary directory + # tmpdir="$(mktemp -d)" + # # Backup the config file in the temp dir + # cp -a "$final_path/settings.json" "$tmpdir/settings.json" - ynh_secure_remove --file="$final_path" + # ynh_secure_remove --file="$final_path" # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" - # Copy the admin saved settings from tmp directory to final config path - cp -a "$tmpdir/settings.json" "$final_path/settings.json" + # # Copy the admin saved settings from tmp directory to final config path + # cp -a "$tmpdir/settings.json" "$final_path/settings.json" - # Remove the tmp directory securely - ynh_secure_remove --file="$tmpdir" + # # Remove the tmp directory securely + # ynh_secure_remove --file="$tmpdir" fi