2015-08-03 12:05:52 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-08-10 15:55:41 +02:00
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
2016-07-11 18:41:22 +02:00
|
|
|
|
2018-08-10 15:55:41 +02:00
|
|
|
source _common.sh
|
2018-08-10 14:59:24 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
2016-07-10 16:24:09 +02:00
|
|
|
|
2018-08-10 15:55:41 +02:00
|
|
|
#=================================================
|
2024-01-29 17:25:45 +01:00
|
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
2020-11-23 23:39:34 +01:00
|
|
|
#=================================================
|
2024-01-29 17:25:45 +01:00
|
|
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
2020-11-23 23:39:34 +01:00
|
|
|
|
|
|
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
2024-01-29 17:25:45 +01:00
|
|
|
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
|
|
|
|
yunohost service remove "$app"
|
2020-11-23 23:39:34 +01:00
|
|
|
fi
|
|
|
|
|
2020-07-24 18:32:57 +02:00
|
|
|
# Remove the dedicated systemd config
|
|
|
|
ynh_remove_systemd_config
|
2018-08-10 15:55:41 +02:00
|
|
|
|
2022-02-03 08:21:04 +01:00
|
|
|
# Remove the dedicated NGINX config
|
|
|
|
ynh_remove_nginx_config
|
2020-09-17 10:57:58 +02:00
|
|
|
|
2022-02-03 08:21:04 +01:00
|
|
|
# Remove the dedicated PHP-FPM config
|
2020-07-24 18:32:57 +02:00
|
|
|
ynh_remove_fpm_config
|
2018-08-10 17:06:29 +02:00
|
|
|
|
2020-07-24 18:32:57 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2022-02-03 08:21:04 +01:00
|
|
|
ynh_script_progression --message="Removal of $app completed"
|