From 2b9b70ecd130cda25a2a98ff4ce8c0f97034d990 Mon Sep 17 00:00:00 2001 From: anmol Date: Tue, 17 Nov 2020 04:24:25 +0530 Subject: [PATCH] Added upgrade hash --- check_process | 1 + scripts/upgrade | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/check_process b/check_process index 494cfce..3897d1e 100644 --- a/check_process +++ b/check_process @@ -17,6 +17,7 @@ setup_private=1 setup_public=1 upgrade=1 + upgrade=1 from_commit=66140e9d21f8d9e07074b5bded213265b06819d5 backup_restore=1 multi_instance=1 # This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version. diff --git a/scripts/upgrade b/scripts/upgrade index f6f9df5..6cfc16c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -102,7 +102,7 @@ then cp -a "$final_path/storage/upload/" "$tmpdir/storage/upload/" cp -a "$final_path/.env" "$tmpdir/.env" cp -a "$final_path/storage/export/" "$tmpdir/storage/export/" - rm -Rf "$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" @@ -112,7 +112,7 @@ then cp -a "$tmpdir/storage/export/" "$final_path/storage/export/" cp -a "$tmpdir/.env" "$final_path/.env" # Remove temporary directory - rm -Rf "$tmpdir" + ynh_secure_remove --file="$tmpdir" fi