From cc910a25557986b30e6192846279db171d845626 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 6 Jan 2021 14:47:04 +0100 Subject: [PATCH] Update remove --- scripts/remove | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index c80f0b7..a57c540 100644 --- a/scripts/remove +++ b/scripts/remove @@ -24,10 +24,10 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) # REMOVE SERVICE FROM ADMIN PANEL #================================================= -# Check if the service is declared in YunoHost -if yunohost service status $app >/dev/null 2>&1 +# 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..." + ynh_script_progression --message="Removing $app service integration..." --time --weight=1 yunohost service remove $app fi