mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-12-13 19:03:19 +00:00
Check if client config exists
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f "$DEVICE-client_$1.conf" ]; then
|
||||
echo "No client $1"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat "$DEVICE-client_$1.conf"
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user