pelican_ynh/scripts/remove

29 lines
725 B
Text
Raw Permalink Normal View History

2019-01-02 05:26:13 -05:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
2024-10-21 12:53:17 -04:00
# REMOVE SYSTEM CONFIGURATIONS
2019-01-02 16:07:36 -05:00
#=================================================
2024-10-21 12:53:17 -04:00
ynh_script_progression "Removing system configurations related to $app..."
2019-01-02 16:07:36 -05:00
2024-10-21 12:53:17 -04:00
if ynh_hide_warnings yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
2019-01-02 05:26:13 -05:00
fi
2024-10-21 12:53:17 -04:00
ynh_config_remove_systemd
2019-01-02 05:26:13 -05:00
2024-10-21 12:53:17 -04:00
ynh_config_remove_nginx
2019-01-02 05:26:13 -05:00
2024-10-21 12:53:17 -04:00
ynh_config_remove_phpfpm
2019-01-02 05:26:13 -05:00
2024-10-21 12:53:17 -04:00
# Remove other various files specific to the app... such as:
2019-01-02 05:26:13 -05:00
2024-10-21 12:53:17 -04:00
ynh_safe_rm "/etc/cron.d/$app"
2019-01-02 05:26:13 -05:00
#=================================================
2024-10-21 12:53:17 -04:00
# END OF SCRIPT
2019-01-02 05:26:13 -05:00
#=================================================
2024-10-21 12:53:17 -04:00
ynh_script_progression "Removal of $app completed"