From 114e7cca3d5f8b2d7faebbb54ff885ed3d950b4c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 14 Mar 2022 23:12:04 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7baf5da..a8d4133 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,8 +72,14 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." + tmpdir="$(mktemp -d)" + rsync -a "$final_path/DATAS" "$tmpdir/." + ynh_secure_remove --file="$final_path" + # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --keep="DATAS/" + ynh_setup_source --dest_dir="$final_path" + rsync -a "$tmpdir/DATAS" "$final_path/." + ynh_secure_remove --file="$tmpdir" fi chmod 750 "$final_path"