From aed932bbb6e75e0a5e16e8a73a59b5e2777614b8 Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 16 Sep 2018 16:29:08 +0200 Subject: [PATCH] Fix apt-get update --- openvpn-install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index c2d60b0..b4e5939 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -350,25 +350,23 @@ else read -n1 -r -p "Press any key to continue..." if [[ "$OS" = 'debian' ]]; then + apt-get update apt-get install ca-certificates gnupg -y # We add the OpenVPN repo to get the latest version. # Debian 7 if [[ "$VERSION_ID" = 'VERSION_ID="7"' ]]; then echo "deb http://build.openvpn.net/debian/openvpn/stable wheezy 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 # Debian 8 if [[ "$VERSION_ID" = 'VERSION_ID="8"' ]]; then echo "deb http://build.openvpn.net/debian/openvpn/stable jessie main" > /etc/apt/sources.list.d/openvpn.list wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - - apt update fi # Ubuntu 14.04 if [[ "$VERSION_ID" = 'VERSION_ID="14.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.3.3 without the need of a third party repository. # The we install OpenVPN