2017-04-08 00:06:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-03-11 12:42:46 +01:00
|
|
|
source _common.sh
|
2017-04-08 00:06:50 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2018-03-11 12:42:46 +01:00
|
|
|
#=================================================
|
|
|
|
# STANDARD REMOVE
|
2021-03-25 17:00:29 +01:00
|
|
|
#=================================================
|
|
|
|
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
2024-06-24 14:16:00 +02:00
|
|
|
if ynh_hide_warnings yunohost service status $app >/dev/null
|
2021-03-25 17:00:29 +01:00
|
|
|
then
|
2024-06-24 14:16:00 +02:00
|
|
|
ynh_script_progression "Removing $app service integration..."
|
2021-03-25 17:00:29 +01:00
|
|
|
yunohost service remove $app
|
|
|
|
fi
|
|
|
|
|
2018-03-11 12:42:46 +01:00
|
|
|
# Remove the dedicated systemd config
|
2024-06-24 14:16:00 +02:00
|
|
|
ynh_config_remove_systemd
|
2018-03-11 12:42:46 +01:00
|
|
|
|
2022-01-27 01:16:53 +01:00
|
|
|
# Remove the app-specific logrotate config
|
2024-06-24 14:16:00 +02:00
|
|
|
ynh_config_remove_logrotate
|
2021-08-31 21:26:01 +02:00
|
|
|
|
2021-03-25 17:00:29 +01:00
|
|
|
# Remove the dedicated NGINX config
|
2024-06-24 14:16:00 +02:00
|
|
|
ynh_config_remove_nginx
|
2018-03-11 12:42:46 +01:00
|
|
|
|
2022-01-27 01:16:53 +01:00
|
|
|
# Remove metapackage and its dependencies
|
2024-06-24 14:16:00 +02:00
|
|
|
ynh_nodejs_remove
|
2017-04-08 00:06:50 +02:00
|
|
|
|
2021-03-25 17:00:29 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-06-24 14:16:00 +02:00
|
|
|
ynh_script_progression "Removal of $app completed"
|