Fixed rm -rf commands for revoking user certs

This commit is contained in:
angrysnarl 2015-12-16 00:15:08 +08:00
parent 0df84e4541
commit a1b57a1c31
1 changed files with 3 additions and 3 deletions

View File

@ -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