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