1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/scripts/remove

36 lines
1,009 B
Text
Raw Normal View History

2014-07-23 15:52:50 +02:00
#!/bin/bash
2019-02-21 08:05:43 +01:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
2017-02-13 23:55:58 +01:00
2018-10-21 17:55:39 +02:00
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
2018-10-21 17:55:39 +02:00
#=================================================
# REMOVE SYSTEMD SERVICE
2019-02-21 08:05:43 +01:00
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2019-02-21 08:05:43 +01:00
2020-09-04 22:39:46 +02:00
# Remove the dedicated NGINX config
2019-02-21 08:05:43 +01:00
ynh_remove_nginx_config
2020-09-04 22:24:17 +02:00
# Remove the dedicated PHP-FPM config
2019-02-21 08:05:43 +01:00
ynh_remove_fpm_config
2014-07-23 15:52:50 +02:00
2019-02-21 08:05:43 +01:00
# Remove a cron file
2022-10-02 23:03:44 +02:00
ynh_secure_remove --file="/etc/cron.d/$app"
2019-02-21 08:05:43 +01:00
2022-10-03 00:00:06 +02:00
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
2019-02-21 08:05:43 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2014-07-23 15:52:50 +02:00
2022-10-02 23:03:44 +02:00
ynh_script_progression --message="Removal of $app completed" --last