Return non-zero, when client name taken

closes #1194
This commit is contained in:
Karol Grodzicki 2024-01-04 12:51:49 +01:00 committed by GitHub
parent 5a4b31bd0d
commit 9c8c848965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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