From e4a9851b4fe3ceca6fdc3a33f2322f84d5c1ef3c Mon Sep 17 00:00:00 2001 From: angristan Date: Mon, 24 Sep 2018 15:24:31 +0200 Subject: [PATCH] Remove revoked client from ifconfig-pool-persist --- openvpn-install.sh | 1 + 1 file changed, 1 insertion(+) 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."