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

30 lines
750 B
Text
Raw Normal View History

2021-02-21 21:01:45 +01:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
2022-01-15 20:47:26 +01:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2021-02-21 21:01:45 +01:00
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
2022-04-30 20:12:00 +02:00
ynh_script_progression --message="Removing $app service integration..." --weight=1
2022-01-15 20:47:26 +01:00
yunohost service remove $app
2021-02-21 21:01:45 +01:00
fi
ynh_remove_systemd_config
2022-01-15 20:47:26 +01:00
ynh_remove_logrotate
2021-02-21 21:01:45 +01:00
ynh_remove_nginx_config
2022-05-27 23:24:23 +02:00
ynh_remove_go
2021-02-21 21:01:45 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2022-04-30 20:12:00 +02:00
ynh_script_progression --message="Removal of $app completed" --last