From 7a2b84323caf253a658df8b279f28f3789a17e4e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 6 Sep 2021 15:44:09 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 509475f..5295e31 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,22 +94,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=2 - # # Create a temporary directory - # tmpdir="$(mktemp -d)" - - # # Backup the config file in the temp dir - # cp -ar "$final_path/data/passwd" "$tmpdir/passwd" - - # # Remove the app directory securely - # ynh_secure_remove --file="$final_path" - ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" --keep="$final_path/data/passwd" - - # # Copy the admin saved settings from tmp directory to final path - # cp -ar "$tmpdir/passwd" "$final_path/data/passwd" - - # # Remove the tmp directory securely - # ynh_secure_remove --file="$tmpdir" fi chmod 750 "$final_path"