1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00
moodle_ynh/scripts/remove

43 lines
1.3 KiB
Text
Raw Normal View History

2017-12-14 18:03:01 +01:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
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