From 054dd4f2a7947e73c46f0caa4fdfbe5dd0805064 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 14 Feb 2024 06:12:08 +0100 Subject: [PATCH] gorgotten yunohost service remove "$app" --- scripts/remove | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/remove b/scripts/remove index 46122bd..c4d5e7b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -11,6 +11,17 @@ source /usr/share/yunohost/helpers #================================================= # REMOVE SYSTEM CONFIGURATIONS +#================================================= +# REMOVE SERVICE INTEGRATION IN YUNOHOST +#================================================= + +# 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 +then + ynh_script_progression --message="Removing $app service integration..." --weight=1 + yunohost service remove "$app" +fi + #================================================= # REMOVE SYSTEMD SERVICE #=================================================