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

28 lines
728 B
Text
Raw Normal View History

2017-04-09 11:05:39 +02:00
#!/bin/bash
2022-03-13 23:43:18 +01:00
source _common.sh
2017-04-09 11:05:39 +02:00
source /usr/share/yunohost/helpers
2023-12-16 15:11:09 +01:00
ynh_script_progression --message="Removing system configurations..." --weight=1
2019-08-23 16:08:03 +02:00
2022-03-13 23:43:18 +01:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2019-08-23 16:08:03 +02:00
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
yunohost service remove $app
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
2017-04-09 11:05:39 +02:00
2022-03-13 23:43:18 +01:00
# Remove the dedicated NGINX config
2019-08-23 16:08:03 +02:00
ynh_remove_nginx_config
# Remove the log files
2022-03-13 23:43:18 +01:00
ynh_secure_remove --file="/var/log/$app"
2017-04-09 11:05:39 +02:00
2019-08-23 16:08:03 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2017-04-09 11:05:39 +02:00
2022-09-03 00:23:04 +02:00
ynh_script_progression --message="Removal of $app completed" --last