From 01d1cdb24023d302a953a64e159ae7ad9edd61ca Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 9 Nov 2020 16:04:39 +0100 Subject: [PATCH] rm -r -> ynh_secure_remove --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b3e2c54..88ebf9a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,7 +101,7 @@ then mkdir -p "$final_path/storage/export/" cp -a "$final_path/storage/upload/" "$tmpdir/storage/upload/" cp -a "$final_path/storage/export/" "$tmpdir/storage/export/" - rm -Rf "$final_path" + ynh_secure_remove "$final_path" # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" @@ -111,7 +111,7 @@ then cp -a "$tmpdir/storage/export/" "$final_path/storage/export/" # Remove temporary directory - rm -Rf "$tmpdir" + ynh_secure_remove "$tmpdir" fi