From 6db5c2e6ad9957b19748faa7e39196e064da0fe1 Mon Sep 17 00:00:00 2001 From: John E <44390932+jmeubank@users.noreply.github.com> Date: Sun, 29 Mar 2020 14:37:09 -0700 Subject: [PATCH] Use original easy-rsa name (round 2) Co-Authored-By: randomshell <43271778+randomshell@users.noreply.github.com> --- openvpn-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 20ddd68..d5a14a7 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -662,6 +662,9 @@ function installOpenVPN () { # Install required dependencies and upgrade the system pacman --needed --noconfirm -Syu openvpn iptables openssl wget ca-certificates curl fi + if [[ -d /etc/openvpn/easy-rsa/ ]]; then + rm -rf /etc/openvpn/easy-rsa/ + fi fi # Find out if the machine uses nogroup or nobody for the permissionless group @@ -678,7 +681,7 @@ function installOpenVPN () { # Install the latest version of easy-rsa from source, if not already # installed. - if [[ ! -d /etc/openvpn/easy-rsa-auto/ ]]; then + if [[ ! -d /etc/openvpn/easy-rsa/ ]]; then local version="3.0.6" wget -O ~/EasyRSA-unix-v${version}.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v${version}/EasyRSA-unix-v${version}.tgz tar xzf ~/EasyRSA-unix-v${version}.tgz -C ~/