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