Check for syncthing id files in user directories
This commit is contained in:
parent
b5a32cf391
commit
ca6420f123
|
@ -264,6 +264,14 @@ function user_devices_changed {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for d in /home/*/ ; do
|
||||||
|
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
|
||||||
|
if [ ! -f /home/$USERNAME/.syncthing-server-id ]; then
|
||||||
|
CHANGED=1
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
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 [[ $(is_valid_user "$USERNAME") == "1" ]]; then
|
if [[ $(is_valid_user "$USERNAME") == "1" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue