2017-12-14 18:03:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
2020-04-11 02:27:49 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
2017-12-14 18:03:01 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# REMOVE NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2021-02-25 15:10:59 +01:00
|
|
|
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
|
2017-12-14 18:03:01 +01:00
|
|
|
|
2020-11-30 21:43:05 +01:00
|
|
|
# Remove the dedicated NGINX config
|
2017-12-14 18:03:01 +01:00
|
|
|
ynh_remove_nginx_config
|
|
|
|
|
|
|
|
#=================================================
|
2019-03-12 18:10:10 +01:00
|
|
|
# REMOVE PHP-FPM CONFIGURATION
|
2017-12-14 18:03:01 +01:00
|
|
|
#=================================================
|
2020-11-30 21:43:05 +01:00
|
|
|
ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=20
|
2017-12-14 18:03:01 +01:00
|
|
|
|
2022-06-19 21:58:27 +02:00
|
|
|
# Remove the dedicated PHP-FPM config
|
2019-03-13 21:39:39 +01:00
|
|
|
ynh_remove_fpm_config
|
2020-03-27 14:17:52 +01:00
|
|
|
|
2017-12-14 18:03:01 +01:00
|
|
|
#=================================================
|
|
|
|
# SPECIFIC REMOVE
|
|
|
|
#=================================================
|
2020-06-13 23:58:57 +02:00
|
|
|
# REMOVE VARIOUS FILES
|
2017-12-14 18:03:01 +01:00
|
|
|
#=================================================
|
2021-02-25 15:10:59 +01:00
|
|
|
ynh_script_progression --message="Removing various files..." --weight=2
|
2017-12-14 18:03:01 +01:00
|
|
|
|
|
|
|
# Remove a cron file
|
2020-03-24 02:27:29 +01:00
|
|
|
ynh_secure_remove --file="/etc/cron.d/$app"
|
2017-12-14 18:03:01 +01:00
|
|
|
|
2019-03-12 18:10:10 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-07-20 08:30:59 +02:00
|
|
|
ynh_script_progression --message="Removal of $app completed" --last
|