From f871fbeaa06bc9206cccb26dfe9dba80a5651973 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 25 Oct 2021 20:23:15 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8625bca..e09a2ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -62,22 +62,22 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Create a temporary directory - tmpdir="$(mktemp -d)" + #tmpdir="$(mktemp -d)" # Backup the config file in the temp dir - cp -a "$final_path/.env" "$tmpdir/.env" + #cp -a "$final_path/.env" "$tmpdir/.env" # 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" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/.env" # Copy the admin saved settings from tmp directory to final path - cp -a "$tmpdir/.env" "$final_path/.env" + #cp -a "$tmpdir/.env" "$final_path/.env" # Remove the tmp directory securely - ynh_secure_remove --file="$tmpdir" + #ynh_secure_remove --file="$tmpdir" fi # Set permissions on app files