chibisafe_ynh/scripts/remove

35 lines
854 B
Text
Raw Normal View History

2014-10-20 12:55:53 -04:00
#!/bin/bash
2017-06-02 12:34:13 -04:00
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2014-10-20 12:55:53 -04:00
2017-06-05 07:11:07 -04:00
source _common.sh
source /usr/share/yunohost/helpers
2017-06-02 12:34:13 -04:00
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
2017-06-02 12:34:13 -04:00
#=================================================
2024-11-15 18:28:12 -05:00
ynh_script_progression "Removing system configurations related to $app..."
2024-06-20 17:49:43 -04:00
if ynh_hide_warnings yunohost service status "$app" >/dev/null; then
2024-06-20 10:08:54 -04:00
yunohost service remove "$app"
fi
2024-11-15 18:28:12 -05:00
2024-06-20 17:49:43 -04:00
ynh_config_remove_systemd
2024-06-20 17:49:43 -04:00
ynh_config_remove_nginx
2017-06-02 12:34:13 -04:00
2024-09-03 07:55:06 -04:00
# Remove other various files specific to the app... such as:
2014-10-20 12:55:53 -04:00
2024-06-20 17:49:43 -04:00
ynh_safe_rm "/etc/cron.d/$app"
2014-10-20 12:55:53 -04:00
2024-06-20 17:49:43 -04:00
ynh_safe_rm "/etc/$app"
2014-10-20 12:55:53 -04:00
2019-02-10 09:02:38 -05:00
#=================================================
# END OF SCRIPT
#=================================================
2024-06-20 17:49:43 -04:00
ynh_script_progression "Removal of $app completed"