2015-08-20 15:06:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-01-27 23:36:59 +01:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2019-02-09 23:46:07 +01:00
|
|
|
source _common.sh
|
2020-04-17 14:38:01 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
2019-01-27 23:36:59 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# REMOVE NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2021-05-15 16:10:33 +02:00
|
|
|
ynh_script_progression --message="Removing NGINX web server configuration..."
|
2019-01-27 23:36:59 +01:00
|
|
|
|
2021-05-15 16:10:33 +02:00
|
|
|
# Remove the dedicated NGINX config
|
2019-01-27 23:36:59 +01:00
|
|
|
ynh_remove_nginx_config
|
2015-08-20 15:06:37 +02:00
|
|
|
|
2019-01-27 23:36:59 +01:00
|
|
|
#=================================================
|
|
|
|
# REMOVE PHP-FPM CONFIGURATION
|
|
|
|
#=================================================
|
2021-05-15 16:10:33 +02:00
|
|
|
ynh_script_progression --message="Removing PHP-FPM configuration..."
|
2015-08-20 15:06:37 +02:00
|
|
|
|
2021-05-15 16:10:33 +02:00
|
|
|
# Remove the dedicated PHP-FPM config
|
2019-01-27 23:36:59 +01:00
|
|
|
ynh_remove_fpm_config
|
2015-08-20 15:06:37 +02:00
|
|
|
|
2021-05-15 16:10:33 +02:00
|
|
|
#=================================================
|
|
|
|
# REMOVE FAIL2BAN CONFIGURATION
|
|
|
|
#=================================================
|
2022-05-30 16:06:42 +02:00
|
|
|
ynh_script_progression --message="Removing Fail2Ban configuration..."
|
2021-05-15 16:10:33 +02:00
|
|
|
|
|
|
|
# Remove the dedicated Fail2Ban config
|
|
|
|
ynh_remove_fail2ban_config
|
|
|
|
|
2020-04-17 14:38:01 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Removal of $app completed" --last
|