From b32e082487392c7977341cf690152b67e2c24c1f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 22 May 2020 18:59:38 +0200 Subject: [PATCH] add remove service integration --- scripts/remove | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/remove b/scripts/remove index f00aabe..29ed05f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -25,6 +25,17 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # STANDARD REMOVE +#================================================= +# 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..." --weight=1 + yunohost service remove $app +fi + #================================================= # STOP AND REMOVE SERVICE #=================================================