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

View File

@@ -1080,7 +1080,7 @@ function newClient() {
if [[ $CLIENTEXISTS == '1' ]]; then if [[ $CLIENTEXISTS == '1' ]]; then
echo "" echo ""
echo "The specified client CN was already found in easy-rsa, please choose another name." echo "The specified client CN was already found in easy-rsa, please choose another name."
exit exit 1
else else
cd /etc/openvpn/easy-rsa/ || return cd /etc/openvpn/easy-rsa/ || return
case $PASS in case $PASS in