From 9c8c84896580a09d419a1f43a9958ca3e835ae94 Mon Sep 17 00:00:00 2001 From: Karol Grodzicki Date: Thu, 4 Jan 2024 12:51:49 +0100 Subject: [PATCH] Return non-zero, when client name taken closes #1194 --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 06ad608..8219430 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1080,7 +1080,7 @@ function newClient() { if [[ $CLIENTEXISTS == '1' ]]; then echo "" echo "The specified client CN was already found in easy-rsa, please choose another name." - exit + exit 1 else cd /etc/openvpn/easy-rsa/ || return case $PASS in