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

40 lines
1.2 KiB
Text
Raw Permalink Normal View History

2015-05-24 23:01:16 +02:00
#!/bin/bash
2021-11-25 19:38:26 +01:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2017-02-21 14:51:22 +01:00
2021-11-25 19:38:26 +01:00
source _common.sh
source /usr/share/yunohost/helpers
2021-11-25 19:38:26 +01:00
#=================================================
2024-02-21 14:59:14 +01:00
# REMOVE SYSTEM CONFIGURATIONS
2021-11-25 19:38:26 +01:00
#=================================================
2024-02-21 14:59:14 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2021-11-25 19:38:26 +01:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-02-21 14:59:14 +01:00
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
2021-11-25 19:38:26 +01:00
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
2016-06-28 13:55:13 +02:00
2021-11-25 19:38:26 +01:00
# Remove the dedicated NGINX config
ynh_remove_nginx_config
2022-03-12 16:55:59 +01:00
#=================================================
# REMOVE DEPENDENCIES
#=================================================
2024-02-21 14:59:14 +01:00
ynh_script_progression --message="Removing Duniter package…"
2022-03-12 16:55:59 +01:00
dpkg -r duniter
2020-06-11 19:00:12 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2022-03-12 16:55:59 +01:00
ynh_script_progression --message="Removal of $app completed"