This commit is contained in:
MauricioFesta 2023-01-23 14:09:47 +03:30 committed by GitHub
commit 1d4a611fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1184,6 +1184,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 ""