Initial syncthing config
This commit is contained in:
parent
16b5016b06
commit
f902b04d46
|
@ -245,7 +245,12 @@ function user_devices_changed {
|
||||||
CHANGED=1
|
CHANGED=1
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! grep -q "${PROJECT_NAME}" $SYNCTHING_CONFIG_FILE; then
|
||||||
|
CHANGED=1
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
for d in /home/*/ ; do
|
for d in /home/*/ ; do
|
||||||
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
|
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
|
||||||
if [[ $USERNAME != "git" && $USERNAME != "mirrors" && $USERNAME != "sync" ]]; then
|
if [[ $USERNAME != "git" && $USERNAME != "mirrors" && $USERNAME != "sync" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue