Use original easy-rsa name (round 2)
Co-Authored-By: randomshell <43271778+randomshell@users.noreply.github.com>
This commit is contained in:
parent
6abaf59a23
commit
6db5c2e6ad
1 changed files with 4 additions and 1 deletions
|
|
@ -662,6 +662,9 @@ function installOpenVPN () {
|
||||||
# Install required dependencies and upgrade the system
|
# Install required dependencies and upgrade the system
|
||||||
pacman --needed --noconfirm -Syu openvpn iptables openssl wget ca-certificates curl
|
pacman --needed --noconfirm -Syu openvpn iptables openssl wget ca-certificates curl
|
||||||
fi
|
fi
|
||||||
|
if [[ -d /etc/openvpn/easy-rsa/ ]]; then
|
||||||
|
rm -rf /etc/openvpn/easy-rsa/
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find out if the machine uses nogroup or nobody for the permissionless group
|
# 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
|
# Install the latest version of easy-rsa from source, if not already
|
||||||
# installed.
|
# installed.
|
||||||
if [[ ! -d /etc/openvpn/easy-rsa-auto/ ]]; then
|
if [[ ! -d /etc/openvpn/easy-rsa/ ]]; then
|
||||||
local version="3.0.6"
|
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
|
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 ~/
|
tar xzf ~/EasyRSA-unix-v${version}.tgz -C ~/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue