From 095099be8d25a6972451236abce88fdd2d3eaf0c Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 2 Feb 2022 22:59:26 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0357364..56d12b5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,22 +71,22 @@ then ynh_script_progression --message="Upgrading source files..." --weight=3 # Create a temporary directory - tmpdir="$(mktemp -d)" + #tmpdir="$(mktemp -d)" # Backup the config file in the temp dir - cp -a "$final_path/static/config.json" "$tmpdir/config.json" + #cp -a "$final_path/static/config.json" "$tmpdir/config.json" # Remove the app directory securely - 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 + ynh_setup_source --dest_dir=$final_path --keep="$final_path/static/config.json" #Copy the admin saved settings from tmp directory to final path - cp -a "$tmpdir/config.json" "$final_path/static/config.json" + #cp -a "$tmpdir/config.json" "$final_path/static/config.json" # Remove the tmp directory securely - ynh_secure_remove --file="$tmpdir" + #ynh_secure_remove --file="$tmpdir" fi chmod 750 "$final_path"