From 6dcbefbf964df1db7cc363160f9b87ff79583be9 Mon Sep 17 00:00:00 2001 From: Salamandar <6552989+Salamandar@users.noreply.github.com> Date: Sun, 4 Dec 2022 15:45:27 +0100 Subject: [PATCH] Replace rm -rf with ynh_secure_remove --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 38944be..483e891 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,7 +74,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" # Moved fron /opt to /var/www if [ -d "/opt/yunohost/$app" ]; then - rm -rf "$final_path" + ynh_secure_remove -f "$final_path" mv "/opt/yunohost/$app" "$final_path" fi