mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-10-01 00:55:39 -04:00
mac: actually delete the clients.db
This hopefully makes the client tracking work better. Before this change, the Web UI would not be able to track clients, probably because the database contains garbage. Now that we delete the file properly, it will be re-generated (in the volatile tmpfs) and the Web UI should show everything nicely.
This commit is contained in:
parent
9a3f072c23
commit
948db4b6fa
@ -15,7 +15,7 @@ start() {
|
||||
# We mount a tmpfs so that the client database will be stored in memory only
|
||||
mount -t tmpfs / "$tmpdir"
|
||||
cp -a /etc/oui-tertf/client.db "$tmpdir"
|
||||
shred /etc/oui-tertf/client.db || rm -f /etc/oui-tertf/client.db
|
||||
shred --force --remove /etc/oui-tertf/client.db || rm -f /etc/oui-tertf/client.db
|
||||
# If this script runs multiple times, we accumulate mounts; we try to avoid having mounts over mounts, so we unmount any existing tmpfs
|
||||
umount -t tmpfs -l /etc/oui-tertf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user