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

31 lines
810 B
Text
Raw Normal View History

2017-04-08 00:06:50 +02:00
#!/bin/bash
2018-03-11 12:42:46 +01:00
source _common.sh
2017-04-08 00:06:50 +02:00
source /usr/share/yunohost/helpers
2018-03-11 12:42:46 +01:00
#=================================================
2024-06-24 14:19:30 +02:00
# REMOVE SYSTEM CONFIGURATIONS
2021-03-25 17:00:29 +01:00
#=================================================
2024-06-24 14:19:30 +02:00
ynh_script_progression "Removing system configurations related to $app..."
2021-03-25 17:00:29 +01:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-06-24 14:16:00 +02:00
if ynh_hide_warnings yunohost service status $app >/dev/null
2021-03-25 17:00:29 +01:00
then
2024-06-24 14:16:00 +02:00
ynh_script_progression "Removing $app service integration..."
2021-03-25 17:00:29 +01:00
yunohost service remove $app
fi
2024-06-24 14:16:00 +02:00
ynh_config_remove_systemd
2018-03-11 12:42:46 +01:00
2024-06-24 14:16:00 +02:00
ynh_config_remove_logrotate
2021-08-31 21:26:01 +02:00
2024-06-24 14:16:00 +02:00
ynh_config_remove_nginx
2018-03-11 12:42:46 +01:00
2024-06-24 14:16:00 +02:00
ynh_nodejs_remove
2017-04-08 00:06:50 +02:00
2021-03-25 17:00:29 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2024-06-24 14:16:00 +02:00
ynh_script_progression "Removal of $app completed"