2018-02-25 21:45:24 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
|
2023-09-09 11:17:52 +02:00
|
|
|
source _common.sh
|
2020-11-17 23:33:50 +01:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
#=================================================
|
2023-09-09 11:17:52 +02:00
|
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
2018-02-25 21:45:24 +01:00
|
|
|
#=================================================
|
2024-08-30 22:57:28 +02:00
|
|
|
ynh_script_progression "Removing system configurations related to $app..."
|
2018-02-25 21:45:24 +01:00
|
|
|
|
2024-08-30 22:57:28 +02:00
|
|
|
if ynh_hide_warnings yunohost service status "$app" >/dev/null
|
2023-09-09 11:17:52 +02:00
|
|
|
then
|
2024-08-30 22:57:28 +02:00
|
|
|
ynh_script_progression "Removing $app service integration..."
|
2023-09-09 11:17:52 +02:00
|
|
|
yunohost service remove "$app"
|
|
|
|
fi
|
2018-02-25 21:45:24 +01:00
|
|
|
|
2024-08-30 22:57:28 +02:00
|
|
|
ynh_config_remove_systemd
|
2018-02-25 21:45:24 +01:00
|
|
|
|
2024-08-30 22:57:28 +02:00
|
|
|
ynh_config_remove_nginx
|
2018-02-25 21:45:24 +01:00
|
|
|
|
2024-08-30 22:57:28 +02:00
|
|
|
ynh_config_remove_logrotate
|
2018-06-12 14:32:44 +02:00
|
|
|
|
2024-08-30 22:57:28 +02:00
|
|
|
ynh_config_remove_fail2ban
|
2019-08-01 15:06:04 +02:00
|
|
|
|
2023-09-09 11:17:52 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
2020-12-07 15:11:16 +01:00
|
|
|
|
2024-08-30 22:57:28 +02:00
|
|
|
ynh_script_progression "Removal of $app completed"
|