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