mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-24 01:39:02 +01:00
parent
f411d9dec7
commit
96e6ea71e9
@ -1059,7 +1059,8 @@ function newClient() {
|
|||||||
CLIENTEXISTS=$(tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep -c -E "/CN=$CLIENT\$")
|
CLIENTEXISTS=$(tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep -c -E "/CN=$CLIENT\$")
|
||||||
if [[ $CLIENTEXISTS == '1' ]]; then
|
if [[ $CLIENTEXISTS == '1' ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "The specified client CN was found in easy-rsa."
|
echo "The specified client CN was already found in easy-rsa, please choose another name."
|
||||||
|
exit
|
||||||
else
|
else
|
||||||
cd /etc/openvpn/easy-rsa/ || return
|
cd /etc/openvpn/easy-rsa/ || return
|
||||||
case $PASS in
|
case $PASS in
|
||||||
|
Loading…
Reference in New Issue
Block a user