1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-12-23 07:18:54 +00:00

Merge pull request #107 from angrysnarl/master

Fixed rm -rf commands for revoking user certs
This commit is contained in:
Nyr 2015-12-15 17:17:31 +01:00
commit aa5c024b8e

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