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 #=================================================