Browse Source

Initial syncthing config

Bob Mottram 9 years ago
parent
commit
f902b04d46
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/freedombone-syncthing

+ 6
- 1
src/freedombone-syncthing View File

@@ -245,7 +245,12 @@ function user_devices_changed {
245 245
         CHANGED=1
246 246
         return
247 247
     fi
248
-    
248
+
249
+    if ! grep -q "${PROJECT_NAME}" $SYNCTHING_CONFIG_FILE; then
250
+        CHANGED=1
251
+        return
252
+    fi
253
+        
249 254
     for d in /home/*/ ; do
250 255
         USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
251 256
         if [[ $USERNAME != "git" && $USERNAME != "mirrors" && $USERNAME != "sync" ]]; then