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

33 lines
969 B
Text
Raw Normal View History

2018-08-26 19:04:08 +02:00
#!/bin/bash
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
2024-03-15 11:59:13 +01:00
# REMOVE SYSTEM CONFIGURATIONS
2018-08-26 19:04:08 +02:00
#=================================================
2024-03-15 11:59:13 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2018-08-26 19:04:08 +02:00
2021-06-30 05:08:36 +02:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-03-15 11:59:13 +01:00
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
2019-02-14 19:40:31 +01:00
fi
2018-08-26 19:04:08 +02:00
2019-02-14 19:40:31 +01:00
# Remove the dedicated systemd config
ynh_remove_systemd_config
2018-08-26 19:04:08 +02:00
# Remove the dedicated NGINX config
2019-02-14 19:40:31 +01:00
ynh_remove_nginx_config
2018-08-26 19:04:08 +02:00
2024-01-14 16:31:24 +01:00
_ynh_firewall_remove_tweak
2019-02-14 19:40:31 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2021-01-06 11:55:46 +01:00
ynh_script_progression --message="Removal of $app completed"