mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
fix listing disabled clients
This commit is contained in:
parent
983d43f791
commit
13d40399f3
3 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ fi
|
|||
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ if [ ! -s configs/clients.txt ]; then
|
|||
fi
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
|
|
|
@ -30,4 +30,4 @@ done < clients.txt
|
|||
|
||||
cd /etc/wireguard || return
|
||||
echo "::: Disabled clients :::"
|
||||
grep 'disabled### begin client' wg0.conf | sed 's/#//g; s/begin//'
|
||||
grep 'disabled### begin' wg0.conf | sed 's/#//g; s/begin//'
|
||||
|
|
Loading…
Reference in a new issue