From c7c4e003c4749f338bda5dbd3c48d9f695da5f2f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 17:18:37 +0200 Subject: [PATCH] STOP AND REMOVE SERVICE --- scripts/remove | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index ca51c65..ce24d4f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -25,8 +25,12 @@ GUIPORT=$(ynh_app_setting_get $app guiport) final_path=$(ynh_app_setting_get $app final_path) +#================================================= +# STOP AND REMOVE SERVICE +#================================================= +ynh_print_info "Stopping and removing the systemd service" -# Stop and remove syncthing service +# Remove the dedicated systemd config sudo systemctl stop syncthing@$SYNCUSER.service sudo yunohost service remove syncthing sudo systemctl disable syncthing@$SYNCUSER.service