mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-03-14 14:43:13 +01:00
提升创建用户的稳定性
This commit is contained in:
parent
249ded3db6
commit
7885306ce0
@ -1075,7 +1075,7 @@ function newClient() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
CLIENTEXISTS=$(tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep -E "^V" | grep -c -E "/CN=$CLIENT\$")
|
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 ""
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user