1
0
Mirror von https://github.com/angristan/openvpn-install.git synchronisiert 2025-07-12 09:24:22 +02:00

提升创建用户的稳定性

Dieser Commit ist enthalten in:
even 2022-02-18 14:08:52 +08:00
Ursprung 249ded3db6
Commit 7885306ce0

Datei anzeigen

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