send_ynh/scripts/remove

40 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2021-08-25 17:42:59 +02:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
2022-06-29 02:17:46 +02:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-01-17 01:43:15 +01:00
if ynh_exec_warn_less yunohost service status "$app" >/dev/null
2021-08-25 17:42:59 +02:00
then
2022-06-29 02:17:46 +02:00
ynh_script_progression --message="Removing $app service integration..." --weight=1
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_remove_systemd_config
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
2021-08-25 17:42:59 +02:00
ynh_remove_nginx_config
2022-06-29 02:17:46 +02:00
ynh_remove_nodejs
2021-08-25 17:42:59 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last