From edb48887d1786242f678e941ab70a0bcf510fa11 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 24 Nov 2018 11:14:21 +0100 Subject: [PATCH] Update remove --- scripts/remove | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index ebc4fff..38ad551 100644 --- a/scripts/remove +++ b/scripts/remove @@ -7,16 +7,17 @@ source /usr/share/yunohost/helpers db_user=emailPoubelle db_name=$db_user root_pwd=$(sudo cat /etc/yunohost/mysql) -domain=$(sudo yunohost app setting emailpoubelle domain) +domain=$(ynh_app_setting_get $app domain) postfix=/etc/postfix/main.cf +#remove php-geoip +ynh_remove_app_dependencies #removing emailpoubelle database ynh_mysql_remove_db $db_user $db_name #removing emailpoubelle directory sudo rm -rf /var/www/emailpoubelle #removing nginx conf sudo rm -f /etc/nginx/conf.d/$domain.d/emailpoubelle.conf -#todo remove php-geoip #removing aliases sudo sed -i "/devnull:\/dev\/null/d" /etc/aliases sudo newaliases