token-validator: add clean-wg helper script
continuous-integration/drone/push Build is failing Details

This commit is contained in:
nemunaire 2023-03-15 05:26:34 +01:00
parent 76566498b2
commit 73a6323571
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/bin/sh
# Clean wg
while true
do
sleep 900
wg show wg-adlin dump | egrep "^\S+\s+\S+\s+\S+\s+\(none\)" | while read pubkey end; do wg set wg-adlin peer $pubkey remove; done
done