check for clients on first run
This commit is contained in:
parent
e97b352672
commit
354ccc87ab
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,12 @@ echo "] WireGate plugins:"
|
||||||
systemctl list-timers --all | grep 'ACTIVATES\|wgldapsync'
|
systemctl list-timers --all | grep 'ACTIVATES\|wgldapsync'
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
if [ ! -d /etc/wireguard/clients ]; then
|
||||||
|
echo "] WireGate peers: "
|
||||||
|
echo "None. Create some :)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "] WireGate peers:"
|
echo "] WireGate peers:"
|
||||||
tmpfile1=$(mktemp /tmp/wgstats.1.XXXXXX)
|
tmpfile1=$(mktemp /tmp/wgstats.1.XXXXXX)
|
||||||
tmpfile2=$(mktemp /tmp/wgstats.2.XXXXXX)
|
tmpfile2=$(mktemp /tmp/wgstats.2.XXXXXX)
|
||||||
|
|
Loading…
Reference in a new issue