From a1b57a1c3173c0e1baaa413f48c90c674376970d Mon Sep 17 00:00:00 2001 From: angrysnarl Date: Wed, 16 Dec 2015 00:15:08 +0800 Subject: [PATCH] Fixed rm -rf commands for revoking user certs --- openvpn-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index df47d98..9fa1186 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -109,9 +109,9 @@ if [[ -e /etc/openvpn/server.conf ]]; then cd /etc/openvpn/easy-rsa/ ./easyrsa --batch revoke $CLIENT ./easyrsa gen-crl - rm -rf pki/reqs/client.req - rm -rf pki/private/client.key - rm -rf pki/issued/client.crt + rm -rf pki/reqs/$CLIENT.req + rm -rf pki/private/$CLIENT.key + rm -rf pki/issued/$CLIENT.crt # And restart if pgrep systemd-journal; then systemctl restart openvpn@server.service