1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-06-07 05:50:46 +00:00

Use APT repo for Ubuntu 16.04

Ubuntu 16.04 has OpenVPN 2.3.10
This commit is contained in:
angristan 2018-09-23 12:47:52 +02:00
parent 21f15d9aef
commit e2906fd5e4

View File

@ -514,7 +514,12 @@ function installOpenVPN () {
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
apt-get update apt-get update
fi fi
# Ubuntu >= 16.04 and Debian >= 9 have OpenVPN >= 2.4 without the need of a third party repository. if [[ "$VERSION_ID" = "16.04" ]]; then
echo "deb http://build.openvpn.net/debian/openvpn/stable trusty main" > /etc/apt/sources.list.d/openvpn.list
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
apt-get update
fi
# Ubuntu > 16.04 and Debian > 8 have OpenVPN >= 2.4 without the need of a third party repository.
apt-get install openvpn iptables openssl wget ca-certificates curl -y apt-get install openvpn iptables openssl wget ca-certificates curl -y
elif [[ "$OS" = 'centos' ]]; then elif [[ "$OS" = 'centos' ]]; then
yum install epel-release openvpn iptables openssl wget ca-certificates curl -y yum install epel-release openvpn iptables openssl wget ca-certificates curl -y