From cd5600b218f2483ed0141c3d3cf05c923ee3890d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 9 Nov 2020 16:07:27 +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 ad4a7cc..25873f8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,9 +68,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]; then ynh_setup_source --dest_dir="$tmpdir" ## clean & copy files needed to final folder myynh_clean_source - [ -e "$tmpdir/config.php" ] && rm "$tmpdir/config.php" + [ -e "$tmpdir/config.php" ] && ynh_secure_remove "$tmpdir/config.php" cp -a "$tmpdir/." "$final_path" - rm -R "$tmpdir" + ynh_secure_remove "$tmpdir" ## set permissions myynh_set_permissions fi