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

48 lines
1.3 KiB
Text
Raw Permalink Normal View History

2021-09-21 00:25:53 +02:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
# 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
then
2022-04-01 04:57:51 +02:00
ynh_script_progression --message="Removing $app service integration..." --weight=1
2021-09-21 00:25:53 +02:00
yunohost service remove $app
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
# Remove the app-specific logrotate config
ynh_remove_logrotate
2021-09-23 20:12:33 +02:00
ynh_remove_nodejs
2021-09-21 00:25:53 +02:00
2022-04-01 16:00:48 +02:00
yunohost app remove $dex_app
2023-09-29 12:24:16 +02:00
ynh_secure_remove --file="/var/lib/outline"
2021-11-11 16:25:07 +01:00
2021-09-21 00:25:53 +02:00
# Remove the dedicated NGINX config
ynh_remove_nginx_config
2023-10-08 10:18:50 +02:00
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
2021-09-21 00:25:53 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2022-04-01 04:57:51 +02:00
ynh_script_progression --message="Removal of $app completed" --last