mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-07-04 16:22:54 +00:00
Add command to list server and all clients by creation date
This commit is contained in:
6
scripts/ls-configs.sh
Executable file
6
scripts/ls-configs.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Configurations - sorted by creation date"
|
||||
echo
|
||||
echo "Server"
|
||||
cat "$DEVICE.conf" | grep -e "# Client" -e "# <-" | grep -a "#" | sed "s/# //" | sed "s/<- //" | sed "s/\(.*\)\([0-9]\{4\}\)/Created: \1\2\n/"
|
Reference in New Issue
Block a user