Fix easy-rsa old version removal
The removal of an old version of easy-rsa should only happen if OpenVPN is being installed for the first time.
This commit is contained in:
parent
5805cc03b2
commit
e8074a485d
1 changed files with 1 additions and 5 deletions
|
|
@ -662,6 +662,7 @@ 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
|
||||||
|
# An old version of easy-rsa was available by default in some openvpn packages
|
||||||
if [[ -d /etc/openvpn/easy-rsa/ ]]; then
|
if [[ -d /etc/openvpn/easy-rsa/ ]]; then
|
||||||
rm -rf /etc/openvpn/easy-rsa/
|
rm -rf /etc/openvpn/easy-rsa/
|
||||||
fi
|
fi
|
||||||
|
|
@ -674,11 +675,6 @@ function installOpenVPN () {
|
||||||
NOGROUP=nobody
|
NOGROUP=nobody
|
||||||
fi
|
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
|
# Install the latest version of easy-rsa from source, if not already
|
||||||
# installed.
|
# installed.
|
||||||
if [[ ! -d /etc/openvpn/easy-rsa/ ]]; then
|
if [[ ! -d /etc/openvpn/easy-rsa/ ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue