1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00
ttrss_ynh/scripts/remove

40 lines
1.2 KiB
Text
Raw Normal View History

2013-11-24 20:51:24 +01:00
#!/bin/bash
2017-08-27 14:42:28 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2020-08-14 23:29:59 +02:00
source _common.sh
2017-08-27 14:42:28 +02:00
source /usr/share/yunohost/helpers
2013-11-24 20:51:24 +01:00
2017-08-27 14:42:28 +02:00
#=================================================
2023-03-11 12:47:00 +01:00
# REMOVE SYSTEM CONFIGURATIONS
2017-08-27 14:42:28 +02:00
#=================================================
2023-03-11 12:47:00 +01:00
# REMOVE SYSTEMD SERVICE
2017-08-27 14:42:28 +02:00
#=================================================
2023-03-11 12:47:00 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2017-08-27 14:42:28 +02:00
2021-05-18 09:26:51 +02:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
2019-05-01 20:35:48 +02:00
then
2021-05-18 09:26:51 +02:00
ynh_script_progression --message="Removing $app service integration..."
2019-05-01 20:35:48 +02:00
yunohost service remove $app
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
2017-08-27 14:42:28 +02:00
2020-08-14 12:29:45 +02:00
# Remove the dedicated NGINX config
2017-08-27 14:42:28 +02:00
ynh_remove_nginx_config
2020-08-14 12:48:18 +02:00
# Remove the dedicated PHP-FPM config
2017-08-27 14:42:28 +02:00
ynh_remove_fpm_config
#=================================================
2019-05-01 20:35:48 +02:00
# END OF SCRIPT
2017-08-27 14:42:28 +02:00
#=================================================
2019-05-01 20:35:48 +02:00
ynh_script_progression --message="Removal of $app completed" --last