Initial syncthing config

This commit is contained in:
Bob Mottram 2016-04-09 21:14:29 +01:00
parent 16b5016b06
commit f902b04d46
1 changed files with 6 additions and 1 deletions

View File

@ -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