From 7885306ce0e58627079c75de376720545d639e97 Mon Sep 17 00:00:00 2001 From: even Date: Fri, 18 Feb 2022 14:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8D=87=E5=88=9B=E5=BB=BA=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=9A=84=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index a6abc69..1adbc0e 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1075,7 +1075,7 @@ function newClient() { done CLIENTEXISTS=$(tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep -E "^V" | grep -c -E "/CN=$CLIENT\$") - if [[ $CLIENTEXISTS == '1' ]]; then + if [[ $CLIENTEXISTS != '0' ]]; then echo "" echo "The specified client CN was already found in easy-rsa, please choose another name." exit