diff --git a/openvpn-install.sh b/openvpn-install.sh index 99f8bad..470954d 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1040,6 +1040,7 @@ function revokeClient () { chmod 644 /etc/openvpn/crl.pem find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete rm -f "/root/$CLIENT.ovpn" + sed -i "s|^$CLIENT,.*||" /etc/openvpn/ipp.txt echo "" echo "Certificate for client $CLIENT revoked."