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

52 lines
1.6 KiB
Text
Raw Normal View History

2021-09-08 10:52:58 +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`)
2024-01-06 00:11:26 +01:00
if ynh_exec_warn_less yunohost service status $app >/dev/null; then
ynh_script_progression --message="Removing $app service integration..." --weight=1
yunohost service remove $app
2021-09-08 10:52:58 +02:00
fi
#=================================================
2024-01-06 00:11:26 +01:00
# REMOVE SYSTEM CONFIGURATIONS
2021-09-08 10:52:58 +02:00
#=================================================
2024-01-06 00:11:26 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2021-09-08 10:52:58 +02:00
# Remove the dedicated systemd config
ynh_remove_systemd_config
# Remove the app-specific logrotate config
ynh_remove_logrotate
2021-09-15 08:17:28 +02:00
# Remove the dedicated NGINX config
2021-10-06 12:35:46 +02:00
ynh_remove_nginx_config
2021-09-08 10:52:58 +02:00
#=================================================
# SPECIFIC REMOVE
#=================================================
# REMOVE VARIOUS FILES
#=================================================
2021-10-08 13:13:32 +02:00
ynh_script_progression --message="Removing various files..." --weight=1
2021-09-08 10:52:58 +02:00
# Remove the log files
#=================================================
# END OF SCRIPT
#=================================================
2021-10-08 13:13:32 +02:00
ynh_script_progression --message="Removal of $app completed" --last