fix revoke client operation

This commit is contained in:
fgiorgione-at-628197911564 2021-07-26 16:28:32 +02:00
parent 2ab48f2265
commit c0ae9fe2c1

View file

@ -1185,6 +1185,8 @@ function revokeClient() {
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
rm -f "/root/$CLIENT.ovpn"
sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk}
sed -i -e '/^[R]/d' /etc/openvpn/easy-rsa/pki/index.txt
echo ""
echo "Certificate for client $CLIENT revoked."