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

33 lines
785 B
Text
Raw Normal View History

2023-12-13 21:25:13 +01:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
2024-06-23 21:23:05 +02:00
# REMOVE SYSTEMD SERVICE
2023-12-13 21:25:13 +01:00
#=================================================
2024-06-23 21:23:05 +02:00
ynh_script_progression "Removing system configurations related to $app..."
2023-12-13 21:25:13 +01:00
2024-06-23 21:23:05 +02:00
if ynh_hide_warnings yunohost service status $app >/dev/null
2023-12-13 21:25:13 +01:00
then
2024-06-23 21:23:05 +02:00
ynh_script_progression "Removing $app service integration..."
2023-12-13 21:25:13 +01:00
yunohost service remove $app
fi
2024-06-23 21:23:05 +02:00
ynh_config_remove_systemd
2023-12-13 21:25:13 +01:00
2024-06-23 21:23:05 +02:00
ynh_config_remove_nginx
2023-12-13 21:25:13 +01:00
2024-06-23 21:23:05 +02:00
ynh_nodejs_remove
2023-12-13 21:25:13 +01:00
2024-06-23 21:23:05 +02:00
ynh_config_remove_fail2ban
2023-12-13 21:47:23 +01:00
2023-12-13 21:25:13 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2024-06-23 21:23:05 +02:00
ynh_script_progression "Removal of $app completed"