clear user to allow create a new one with the same name

This commit is contained in:
Mauricio Festa 2023-01-03 15:08:28 -03:00
parent 9b5361d32d
commit 1235cf2f47

View File

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