2020-11-19 21:41:03 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
2023-06-04 23:16:35 +02:00
|
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
2020-11-19 21:41:03 +01:00
|
|
|
#=================================================
|
2024-09-01 12:45:48 +02:00
|
|
|
ynh_script_progression "Removing system configurations related to $app..."
|
2020-11-19 21:41:03 +01:00
|
|
|
|
2024-09-01 12:45:48 +02:00
|
|
|
if ynh_hide_warnings yunohost service status $app >/dev/null
|
2020-11-19 21:41:03 +01:00
|
|
|
then
|
2024-09-01 12:45:48 +02:00
|
|
|
ynh_script_progression "Removing $app service..."
|
2020-11-19 21:41:03 +01:00
|
|
|
yunohost service remove $app
|
|
|
|
fi
|
|
|
|
|
2024-09-01 12:45:48 +02:00
|
|
|
ynh_config_remove_systemd
|
2020-11-19 21:41:03 +01:00
|
|
|
|
2024-09-01 12:45:48 +02:00
|
|
|
ynh_nodejs_remove
|
2020-11-19 21:41:03 +01:00
|
|
|
|
2024-09-01 12:45:48 +02:00
|
|
|
ynh_config_remove_nginx
|
2020-11-19 21:41:03 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-09-01 12:45:48 +02:00
|
|
|
ynh_script_progression "Removal of $app completed"
|