This commit is contained in:
Jackie Lee 2024-11-29 03:19:56 +00:00 committed by GitHub
commit 2ad1b30648
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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