From e5ed415dfea3ac1612919c2e73bf1547053c1c7b Mon Sep 17 00:00:00 2001 From: xiagw Date: Fri, 30 Mar 2018 07:49:24 +0800 Subject: [PATCH] Add duplicate id information --- openvpn-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index a209710..b7e173d 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -117,6 +117,8 @@ if [[ -e /etc/openvpn/server.conf ]]; then case $option in 1) echo "" + echo "Here are the files that already exist,do not repeat that" + tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep "^V" | cut -d '=' -f 2 | nl -s ') ' echo "Tell me a name for the client cert" echo "Please, use one word only, no special characters" read -p "Client name: " -e -i newclient CLIENT