syncthing user directory permissions
This commit is contained in:
parent
0c3d0f3c5b
commit
337252f25e
|
@ -275,6 +275,14 @@ function user_devices_changed {
|
|||
fi
|
||||
done < /home/$USERNAME/$SYNCTHING_USER_IDS_FILE
|
||||
fi
|
||||
|
||||
# Permissions on user Sync directories
|
||||
if [ -d /home/$USERNAME/Sync ]; then
|
||||
chown $USERNAME:$USERNAME /home/$USERNAME /home/$USERNAME/Sync
|
||||
fi
|
||||
if [ -d /home/$USERNAME/SyncShared ]; then
|
||||
chown $USERNAME:$USERNAME /home/$USERNAME /home/$USERNAME/SyncShared
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue