send_ynh/scripts/remove

33 lines
892 B
Plaintext
Raw Normal View History

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
#=================================================
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`)
if ynh_hide_warnings yunohost service status "$app" >/dev/null
2021-08-25 17:42:59 +02:00
then
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
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
ynh_config_remove_nginx
2021-08-25 17:42:59 +02:00
ynh_nodejs_remove
2022-06-29 02:17:46 +02:00
2021-08-25 17:42:59 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Removal of $app completed"