From 8ea00a278e10a79e03baea15dd32085359dbe872 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Nov 2016 20:01:50 +0000 Subject: [PATCH] Removing syncthing users from the config --- src/freedombone-syncthing | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-syncthing b/src/freedombone-syncthing index 51147c43..a558b302 100755 --- a/src/freedombone-syncthing +++ b/src/freedombone-syncthing @@ -57,6 +57,12 @@ SYNCTHING_UPDATE_FILE='.syncthing-update' CHANGED= TEMP_IDS_FILE=/root/.synthingids +function remove_user_syncthing { + remove_username="$1" + + sed -i "//d" $SYNCTHING_CONFIG_FILE +} + function new_syncthing_id { for i in {1..8} do