mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-05-09 10:18:22 +02:00
Merge c419909f70b7cd6ca92f0c2c9a5fb1a20fa076a0 into e2d4990ae194e37fd5162168a8aac5e2d89e0e8d
This commit is contained in:
commit
d06235618d
@ -1218,6 +1218,7 @@ function revokeClient() {
|
|||||||
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
|
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
|
||||||
rm -f "/root/$CLIENT.ovpn"
|
rm -f "/root/$CLIENT.ovpn"
|
||||||
sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
|
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}
|
cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk}
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user