mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-07-03 07:42:55 +00:00
Add command to show client config and qr code
This commit is contained in:
11
scripts/show-client.sh
Executable file
11
scripts/show-client.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat "$DEVICE-client_$1.conf"
|
||||
|
||||
echo
|
||||
echo
|
||||
|
||||
# Create QR-codes for clients
|
||||
if [ ! -z "$(which qrencode 2>/dev/null)" ]; then
|
||||
qrencode -t utf8 < "$DEVICE-client_$1.conf"
|
||||
fi
|
Reference in New Issue
Block a user