Update openvpn-install.sh

This commit is contained in:
Stanislas 2020-04-27 14:11:17 +02:00 committed by GitHub
parent d44f879849
commit b133767c42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1114,7 +1114,6 @@ function revokeClient () {
rm -f /etc/openvpn/crl.pem
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
chmod 644 /etc/openvpn/crl.pem
# Cleanup
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
rm -f "/root/$CLIENT.ovpn"
sed -i "s|^$CLIENT,.*||" /etc/openvpn/ipp.txt