From 8a5de575b7b177f51b2c37d3f473a77ab4f8d29a Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 16 Sep 2018 01:29:04 +0200 Subject: [PATCH] Drop Debian 7 support Debian 7 is EOL and I can't test it on cloud providers anymore --- README.md | 1 - openvpn-install.sh | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 10fc377..323d897 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,6 @@ On the client-side, it's less problematic, but if you want to use an OpenVPN ser The script is made to work on these OS and architectures : -- **Debian 7** (i386, amd64) - **Debian 8** (i386, amd64) - **Debian 9** (i386, amd64, armhf, arm64) - **Ubuntu 14.04 LTS** (i386, amd64) diff --git a/openvpn-install.sh b/openvpn-install.sh index dd5a273..9605b83 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -22,7 +22,7 @@ if [[ -e /etc/debian_version ]]; then VERSION_ID=$(grep "VERSION_ID" /etc/os-release) IPTABLES='/etc/iptables/iptables.rules' SYSCTL='/etc/sysctl.conf' - if [[ "$VERSION_ID" != 'VERSION_ID="7"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="8"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="9"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="14.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="16.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="17.10"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="18.04"' ]]; then + if [[ "$VERSION_ID" != 'VERSION_ID="8"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="9"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="14.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="16.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="17.10"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="18.04"' ]]; then echo "Your version of Debian/Ubuntu is not supported." echo "I can't install a recent version of OpenVPN on your system." echo "" @@ -561,12 +561,6 @@ else if [[ "$OS" = 'debian' ]]; then 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