fix listing disabled clients

This commit is contained in:
Roger Haxby 2020-10-27 21:25:27 +00:00
parent 983d43f791
commit 13d40399f3
3 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ fi
if [ "$DISPLAY_DISABLED" ]; then if [ "$DISPLAY_DISABLED" ]; then
grep 'disabled### begin client' wg0.conf | sed 's/#//g; s/begin//' grep 'disabled### begin' wg0.conf | sed 's/#//g; s/begin//'
exit 1 exit 1
fi fi

View file

@ -51,7 +51,7 @@ if [ ! -s configs/clients.txt ]; then
fi fi
if [ "$DISPLAY_DISABLED" ]; then if [ "$DISPLAY_DISABLED" ]; then
grep 'disabled### begin client' wg0.conf | sed 's/#//g; s/begin//' grep 'disabled### begin' wg0.conf | sed 's/#//g; s/begin//'
exit 1 exit 1
fi fi

View file

@ -30,4 +30,4 @@ done < clients.txt
cd /etc/wireguard || return cd /etc/wireguard || return
echo "::: Disabled clients :::" echo "::: Disabled clients :::"
grep 'disabled### begin client' wg0.conf | sed 's/#//g; s/begin//' grep 'disabled### begin' wg0.conf | sed 's/#//g; s/begin//'