From f902b04d46d37258ecbaf65e7e47c46476a91771 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Apr 2016 21:14:29 +0100 Subject: [PATCH] Initial syncthing config --- src/freedombone-syncthing | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/freedombone-syncthing b/src/freedombone-syncthing index 5cb301ff..a647f4aa 100755 --- a/src/freedombone-syncthing +++ b/src/freedombone-syncthing @@ -245,7 +245,12 @@ function user_devices_changed { CHANGED=1 return fi - + + if ! grep -q "${PROJECT_NAME}" $SYNCTHING_CONFIG_FILE; then + CHANGED=1 + return + fi + for d in /home/*/ ; do USERNAME=$(echo "$d" | awk -F '/' '{print $3}') if [[ $USERNAME != "git" && $USERNAME != "mirrors" && $USERNAME != "sync" ]]; then