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

33 lines
1,006 B
Text
Raw Normal View History

2020-11-09 13:27:06 +01:00
#!/bin/bash
2017-03-03 21:26:30 +01:00
2020-11-09 13:27:06 +01:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
2017-03-03 21:26:30 +01:00
source /usr/share/yunohost/helpers
2020-11-09 13:27:06 +01:00
#=================================================
2024-01-19 17:41:44 +01:00
# REMOVE SYSTEM CONFIGURATIONS
2020-11-09 13:27:06 +01:00
#=================================================
2024-01-19 17:41:44 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2020-11-09 13:27:06 +01:00
2021-05-22 13:13:46 +02:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-01-19 17:41:44 +01:00
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove $app
2020-11-09 13:27:06 +01:00
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
2020-11-26 11:35:22 +01:00
# Remove the dedicated NGINX config
2020-11-09 13:27:06 +01:00
ynh_remove_nginx_config
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed"