Skip to content
Snippets Groups Projects
Commit ca6420f1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check for syncthing id files in user directories

parent b5a32cf3
No related branches found
No related tags found
No related merge requests found
......@@ -264,6 +264,14 @@ function user_devices_changed {
return
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
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
if [[ $(is_valid_user "$USERNAME") == "1" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment