diff --git a/openvpn-install.sh b/openvpn-install.sh index 02ef027..549671e 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -662,6 +662,7 @@ function installOpenVPN () { # Install required dependencies and upgrade the system pacman --needed --noconfirm -Syu openvpn iptables openssl wget ca-certificates curl fi + # An old version of easy-rsa was available by default in some openvpn packages if [[ -d /etc/openvpn/easy-rsa/ ]]; then rm -rf /etc/openvpn/easy-rsa/ fi @@ -674,11 +675,6 @@ function installOpenVPN () { NOGROUP=nobody fi - # An old version of easy-rsa was available by default in some openvpn packages - if [[ -d /etc/openvpn/easy-rsa/ ]]; then - rm -rf /etc/openvpn/easy-rsa/ - fi - # Install the latest version of easy-rsa from source, if not already # installed. if [[ ! -d /etc/openvpn/easy-rsa/ ]]; then