From bad507dd3b32a02aa0bc3865f6df3760085bd97b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 9 Nov 2020 16:10:25 +0100 Subject: [PATCH] rm -r -> ynh_secure_remove --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index c373fd2..22a1a7d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,7 +101,7 @@ cp -a "$tmpdir/cache" "${final_path}" cp -a "$tmpdir/store" "${final_path}" cp -a "$tmpdir/.htconfig.php" "${final_path}" cp -a "$tmpdir/php.log" "${final_path}" -rm -Rf "$tmpdir" +ynh_secure_remove "$tmpdir" chmod -R 777 $final_path/store mkdir $final_path/addon ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"