From b3b2e6162783a7b03bb60081c0d0a3dc144e0019 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 29 Nov 2023 21:43:39 +0100 Subject: [PATCH] [fix] YNH_APP_ID -> YNH_APP_INSTANCE_NAME --- hooks/post_app_remove | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/post_app_remove b/hooks/post_app_remove index dc2c86b..8dbeb5d 100644 --- a/hooks/post_app_remove +++ b/hooks/post_app_remove @@ -3,9 +3,9 @@ source /etc/yunohost/apps/chatonsinfos/scripts/_common.sh source /usr/share/yunohost/helpers -[ "${YNH_APP_ID}" == "chatonsinfos" ] && exit 0 +[ "${YNH_APP_INSTANCE_NAME}" == "chatonsinfos" ] && exit 0 install_dir=/var/www/chatonsinfos/ -ynh_secure_remove --file="$install_dir/public/${YNH_APP_ID}.properties" +ynh_secure_remove --file="$install_dir/public/${YNH_APP_INSTANCE_NAME}.properties" -sed -i "/^subs\.${YNH_APP_ID} =/d" "$install_dir/public/organization.properties" +sed -i "/^subs\.${YNH_APP_INSTANCE_NAME} =/d" "$install_dir/public/organization.properties"