2018-06-17 00:50:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# REMOVE NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2020-11-29 09:59:46 +01:00
|
|
|
ynh_script_progression --message="Removing NGINX web server configuration..."
|
2018-06-17 00:50:26 +02:00
|
|
|
|
2020-11-29 09:59:46 +01:00
|
|
|
# Remove the dedicated NGINX config
|
2018-06-17 00:50:26 +02:00
|
|
|
ynh_remove_nginx_config
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# REMOVE PHP-FPM CONFIGURATION
|
|
|
|
#=================================================
|
2020-11-29 09:59:46 +01:00
|
|
|
ynh_script_progression --message="Removing PHP-FPM configuration..."
|
2018-06-17 00:50:26 +02:00
|
|
|
|
2020-11-29 09:59:46 +01:00
|
|
|
# Remove the dedicated PHP-FPM config
|
2019-06-23 01:22:06 +02:00
|
|
|
ynh_remove_fpm_config
|
2018-06-17 00:50:26 +02:00
|
|
|
|
2021-02-07 18:42:41 +01:00
|
|
|
#=================================================
|
|
|
|
# SPECIFIC REMOVE
|
|
|
|
#=================================================
|
2022-07-19 02:18:21 +02:00
|
|
|
# REMOVE VARIOUS FILES
|
2021-02-07 18:42:41 +01:00
|
|
|
#=================================================
|
2022-07-19 02:18:21 +02:00
|
|
|
ynh_script_progression --message="Removing various files..."
|
2021-02-07 18:42:41 +01:00
|
|
|
|
|
|
|
# Remove a cron file
|
|
|
|
ynh_secure_remove --file="/etc/cron.d/$app"
|
|
|
|
|
2019-06-23 01:22:06 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2022-07-19 02:18:21 +02:00
|
|
|
ynh_script_progression --message="Removal of $app completed"
|