mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-08 07:40:05 +01:00
Remove unsupported version of ubuntu (#163)
* Remove unsupported version of ubuntu Remove 12.04 as the support finished on April 28, 2017 Remove 16.10 as the support finished 2017-07-20 Remove 17.04 as the support finished 2018-01-13
This commit is contained in:
parent
febdc04340
commit
f252614a36
@ -59,11 +59,8 @@ The script is made to work on these OS and architectures :
|
|||||||
- **Debian 7** (i386, amd64)
|
- **Debian 7** (i386, amd64)
|
||||||
- **Debian 8** (i386, amd64)
|
- **Debian 8** (i386, amd64)
|
||||||
- **Debian 9** (i386, amd64, armhf, arm64)
|
- **Debian 9** (i386, amd64, armhf, arm64)
|
||||||
- **Ubuntu 12.04 LTS** (i386, amd64)
|
|
||||||
- **Ubuntu 14.04 LTS** (i386, amd64)
|
- **Ubuntu 14.04 LTS** (i386, amd64)
|
||||||
- **Ubuntu 16.04 LTS** (i386, amd64)
|
- **Ubuntu 16.04 LTS** (i386, amd64)
|
||||||
- **Ubuntu 16.10** (i386, amd64, armhf, arm64)
|
|
||||||
- **Ubuntu 17.04** (i386, amd64, armhf, arm64)
|
|
||||||
- **Ubuntu 17.10** (i386, amd64, armhf, arm64)
|
- **Ubuntu 17.10** (i386, amd64, armhf, arm64)
|
||||||
- **Fedora 25** (amd64)
|
- **Fedora 25** (amd64)
|
||||||
- **Fedora 26** (amd64)
|
- **Fedora 26** (amd64)
|
||||||
|
@ -25,7 +25,7 @@ if [[ -e /etc/debian_version ]]; then
|
|||||||
VERSION_ID=$(cat /etc/os-release | grep "VERSION_ID")
|
VERSION_ID=$(cat /etc/os-release | grep "VERSION_ID")
|
||||||
IPTABLES='/etc/iptables/iptables.rules'
|
IPTABLES='/etc/iptables/iptables.rules'
|
||||||
SYSCTL='/etc/sysctl.conf'
|
SYSCTL='/etc/sysctl.conf'
|
||||||
if [[ "$VERSION_ID" != 'VERSION_ID="7"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="8"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="9"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="12.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="14.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="16.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="16.10"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="17.04"' ]] && [[ "$VERSION_ID" != 'VERSION_ID="17.10"' ]]; then
|
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"' ]]; then
|
||||||
echo "Your version of Debian/Ubuntu is not supported."
|
echo "Your version of Debian/Ubuntu is not supported."
|
||||||
echo "I can't install a recent version of OpenVPN on your system."
|
echo "I can't install a recent version of OpenVPN on your system."
|
||||||
echo ""
|
echo ""
|
||||||
@ -340,12 +340,6 @@ else
|
|||||||
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 update
|
apt update
|
||||||
fi
|
fi
|
||||||
# Ubuntu 12.04
|
|
||||||
if [[ "$VERSION_ID" = 'VERSION_ID="12.04"' ]]; then
|
|
||||||
echo "deb http://build.openvpn.net/debian/openvpn/stable precise 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 14.04
|
# Ubuntu 14.04
|
||||||
if [[ "$VERSION_ID" = 'VERSION_ID="14.04"' ]]; then
|
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
|
echo "deb http://build.openvpn.net/debian/openvpn/stable trusty main" > /etc/apt/sources.list.d/openvpn.list
|
||||||
|
Loading…
Reference in New Issue
Block a user