From 69e6a7aaa5b190ce491ce58a1132e690b0344d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 4 Apr 2024 12:13:50 +0200 Subject: [PATCH] Protect more path on ynh secure remove --- helpers/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/utils b/helpers/utils index 98e610f21..df7fb9300 100644 --- a/helpers/utils +++ b/helpers/utils @@ -843,7 +843,7 @@ ynh_get_debian_release() { _acceptable_path_to_delete() { local file=$1 - local forbidden_paths=$(ls -d / /* /{var,home,usr}/* /etc/{default,sudoers.d,yunohost,cron*}) + local forbidden_paths=$(ls -d / /* /{var,home,usr}/* /etc/{default,sudoers.d,yunohost,cron*} /etc/yunohost/{apps,domains,hook.d} /opt/yunohost) # Legacy : A couple apps still have data in /home/$app ... if [[ -n "${app:-}" ]]