2013-11-24 20:51:24 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-08-27 14:42:28 +02:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
2016-05-04 14:53:55 +02:00
|
|
|
|
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 13:53:38 +01:00
|
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
2017-08-27 14:42:28 +02:00
|
|
|
#=================================================
|
2023-03-11 13:53:38 +01:00
|
|
|
# REMOVE SYSTEMD SERVICE
|
2017-08-27 14:42:28 +02:00
|
|
|
#=================================================
|
2023-03-11 13:53:38 +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
|