From 1235cf2f47d552e5772cc04db1134ffab20642f0 Mon Sep 17 00:00:00 2001 From: Mauricio Festa Date: Tue, 3 Jan 2023 15:08:28 -0300 Subject: [PATCH] clear user to allow create a new one with the same name --- openvpn-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 090c7a0..6058b3f 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1182,6 +1182,7 @@ function revokeClient() { find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete rm -f "/root/$CLIENT.ovpn" sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt + sed -i "/CN=$CLIENT/d" /etc/openvpn/easy-rsa/pki/index.txt cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk} echo ""