From a5b965fd0b44ed9ca0ca93333f048710c1ea2edf Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 29 Nov 2023 21:32:15 +0100 Subject: [PATCH] [fix] Do nothing in hook if we remove chatonsinfos --- hooks/post_app_remove | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooks/post_app_remove b/hooks/post_app_remove index a5f5ba8..dc2c86b 100644 --- a/hooks/post_app_remove +++ b/hooks/post_app_remove @@ -3,6 +3,8 @@ source /etc/yunohost/apps/chatonsinfos/scripts/_common.sh source /usr/share/yunohost/helpers +[ "${YNH_APP_ID}" == "chatonsinfos" ] && exit 0 + install_dir=/var/www/chatonsinfos/ ynh_secure_remove --file="$install_dir/public/${YNH_APP_ID}.properties"