1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00
emailpoubelle_ynh/scripts/remove

29 lines
676 B
Text
Raw Normal View History

2018-11-18 16:00:35 +01:00
#!/bin/bash
2018-11-21 00:22:08 +01:00
source _common.sh
source /usr/share/yunohost/helpers
2018-11-24 11:55:35 +01:00
db_name=$(ynh_app_setting_get $app db_name)
db_user==$db_name
2018-11-21 00:22:08 +01:00
2018-11-24 11:14:21 +01:00
#remove php-geoip
ynh_remove_app_dependencies
2018-11-18 16:00:35 +01:00
#removing emailpoubelle database
2018-11-21 00:22:08 +01:00
ynh_mysql_remove_db $db_user $db_name
2018-11-18 16:00:35 +01:00
#removing emailpoubelle directory
2019-04-13 15:11:19 +02:00
ynh_secure_remove /var/www/$app
2018-11-18 16:00:35 +01:00
#removing nginx conf
2019-04-13 15:11:19 +02:00
ynh_remove_nginx_config
2018-11-18 16:00:35 +01:00
#removing aliases
2019-04-13 15:11:19 +02:00
sed -i "/devnull:\/dev\/null/d" /etc/aliases
newaliases
# Remove hook for postfix conf
ynh_secure_remove "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle"
2018-11-25 16:40:00 +01:00
2018-11-18 16:00:35 +01:00
#remove cronjob
2019-04-13 15:11:19 +02:00
rm -f /etc/cron.d/emailpoubelle
2019-03-05 22:43:49 +01:00
yunohost service regen-conf postfix
2019-04-13 15:11:19 +02:00
service nginx reload
yunohost app ssowatconf