2021-08-25 17:42:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
2024-06-17 22:10:05 +02:00
|
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
2021-08-25 17:42:59 +02:00
|
|
|
#=================================================
|
2024-08-31 02:59:44 +02:00
|
|
|
ynh_script_progression "Removing system configurations related to $app..."
|
2021-08-25 17:42:59 +02:00
|
|
|
|
2022-06-29 02:17:46 +02:00
|
|
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
2024-08-31 02:59:44 +02:00
|
|
|
if ynh_hide_warnings yunohost service status "$app" >/dev/null
|
2021-08-25 17:42:59 +02:00
|
|
|
then
|
2024-08-31 02:59:44 +02:00
|
|
|
ynh_script_progression "Removing $app service integration..."
|
2024-01-17 01:43:15 +01:00
|
|
|
yunohost service remove "$app"
|
2021-08-25 17:42:59 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove the dedicated systemd config
|
2024-08-31 02:59:44 +02:00
|
|
|
ynh_config_remove_systemd
|
2021-08-25 17:42:59 +02:00
|
|
|
|
2021-08-26 07:48:47 +02:00
|
|
|
ynh_redis_remove_db "$redis_db"
|
|
|
|
|
2022-06-29 02:17:46 +02:00
|
|
|
# Remove the dedicated NGINX config
|
2024-08-31 02:59:44 +02:00
|
|
|
ynh_config_remove_nginx
|
2021-08-25 17:42:59 +02:00
|
|
|
|
2024-08-31 02:59:44 +02:00
|
|
|
ynh_nodejs_remove
|
2022-06-29 02:17:46 +02:00
|
|
|
|
2021-08-25 17:42:59 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-08-31 02:59:44 +02:00
|
|
|
ynh_script_progression "Removal of $app completed"
|