From 13d40399f3f2288444c198684a4ec2533801fe5d Mon Sep 17 00:00:00 2001 From: Roger Haxby <63857845+shelleycat485@users.noreply.github.com> Date: Tue, 27 Oct 2020 21:25:27 +0000 Subject: [PATCH] fix listing disabled clients --- scripts/wireguard/disableCONF.sh | 2 +- scripts/wireguard/enableCONF.sh | 2 +- scripts/wireguard/listCONF.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/wireguard/disableCONF.sh b/scripts/wireguard/disableCONF.sh index e8a8b5b..16dcfe7 100755 --- a/scripts/wireguard/disableCONF.sh +++ b/scripts/wireguard/disableCONF.sh @@ -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 diff --git a/scripts/wireguard/enableCONF.sh b/scripts/wireguard/enableCONF.sh index 606adae..dad65b6 100755 --- a/scripts/wireguard/enableCONF.sh +++ b/scripts/wireguard/enableCONF.sh @@ -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 diff --git a/scripts/wireguard/listCONF.sh b/scripts/wireguard/listCONF.sh index d4ab8dd..a8f5e57 100755 --- a/scripts/wireguard/listCONF.sh +++ b/scripts/wireguard/listCONF.sh @@ -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//'