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
|
|
|
|
|
|
|
ynh_secure_remove --file="/var/log/$app"
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2022-04-30 20:12:00 +02:00
|
|
|
ynh_script_progression --message="Removal of $app completed" --last
|