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

44 lines
1.3 KiB
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
2019-04-18 22:17:43 +02:00
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression "Removing NGINX web server configuration..."
2019-04-18 22:17:43 +02:00
2022-06-08 03:24:51 +02:00
# Remove the dedicated NGINX config
ynh_config_remove_nginx
2019-04-18 22:17:43 +02:00
#=================================================
2022-06-08 03:24:51 +02:00
# REMOVE PHP-FPM CONFIGURATION
2019-04-18 22:17:43 +02:00
#=================================================
ynh_script_progression "Removing PHP-FPM configuration..."
2022-06-08 03:24:51 +02:00
# Remove the dedicated PHP-FPM config
ynh_config_remove_phpfpm
2019-05-19 18:41:09 +02:00
#=================================================
2022-06-08 03:24:51 +02:00
# SPECIFIC REMOVE
#=================================================
# REMOVE VARIOUS FILES
2019-05-19 18:41:09 +02:00
#=================================================
ynh_script_progression "Removing various files..."
2019-05-19 18:41:09 +02:00
2022-06-08 03:24:51 +02:00
# Remove a cron file
ynh_safe_rm "/etc/cron.d/$app"
2022-06-08 03:24:51 +02:00
ynh_replace --match="devnull:/dev/null" --replace="" --file="/etc/aliases"
2022-06-08 03:24:51 +02:00
newaliases
ynh_safe_rm "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle"
2022-06-08 03:24:51 +02:00
yunohost tools regen-conf postfix
ynh_systemctl --service=postfix --action=reload
2018-11-25 16:40:00 +01:00
2022-06-08 03:24:51 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2019-05-20 10:21:06 +02:00
ynh_script_progression "Removal of $app completed"