提升创建用户的稳定性

このコミットが含まれているのは:
even 2022-02-18 14:08:52 +08:00
コミット 7885306ce0

ファイルの表示

@ -1075,7 +1075,7 @@ function newClient() {
done
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 "The specified client CN was already found in easy-rsa, please choose another name."
exit