From 68e48d21b6859c26b04b4713e326d1cd2d40d214 Mon Sep 17 00:00:00 2001 From: Nyr Date: Sat, 21 Sep 2019 14:39:58 +0200 Subject: [PATCH] Check for unsupported distributions --- openvpn-install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 3850328..646ff87 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -5,6 +5,21 @@ # Copyright (c) 2013 Nyr. Released under the MIT License. +if grep -qs "14.04" "/etc/os-release"; then + echo "Ubuntu 14.04 is too old and not supported" + exit +fi + +if grep -qs "jessie" "/etc/os-release"; then + echo "Debian 8 is too old and not supported" + exit +fi + +if grep -qs "CentOS release 6" "/etc/redhat-release"; then + echo "CentOS 6 is too old and not supported" + exit +fi + if grep -qs "Ubuntu 16.04" "/etc/os-release"; then echo 'Ubuntu 16.04 is no longer supported in the current version of openvpn-install Use an older version if Ubuntu 16.04 support is needed: https://git.io/vpn1604'