diff --git a/extras/quickstart.sh b/extras/quickstart.sh index 4805ae6..bb3e0e5 100755 --- a/extras/quickstart.sh +++ b/extras/quickstart.sh @@ -84,6 +84,9 @@ check_os() { grep -qi stream "$rh_file" && os_ver=8s grep -qi rocky "$rh_file" && os_type=rocky grep -qi alma "$rh_file" && os_type=alma + if [ "$os_type" = "centos" ] && [ "$os_ver" = "8" ]; then + exiterr "CentOS Linux 8 is EOL and not supported." + fi elif grep -qs "Amazon Linux release 2" /etc/system-release; then os_type=amzn os_ver=2 diff --git a/extras/vpnupgrade.sh b/extras/vpnupgrade.sh index 7c09588..2b731ab 100755 --- a/extras/vpnupgrade.sh +++ b/extras/vpnupgrade.sh @@ -49,6 +49,9 @@ check_os() { grep -qi stream "$rh_file" && os_ver=8s grep -qi rocky "$rh_file" && os_type=rocky grep -qi alma "$rh_file" && os_type=alma + if [ "$os_type" = "centos" ] && [ "$os_ver" = "8" ]; then + exiterr "CentOS Linux 8 is EOL and not supported." + fi elif grep -qs "Amazon Linux release 2" /etc/system-release; then os_type=amzn os_ver=2 diff --git a/extras/vpnupgrade_centos.sh b/extras/vpnupgrade_centos.sh index 02e354f..dd691e9 100755 --- a/extras/vpnupgrade_centos.sh +++ b/extras/vpnupgrade_centos.sh @@ -52,6 +52,9 @@ check_os() { grep -qi stream "$rh_file" && os_ver=8s grep -qi rocky "$rh_file" && os_type=rocky grep -qi alma "$rh_file" && os_type=alma + if [ "$os_type" = "centos" ] && [ "$os_ver" = "8" ]; then + exiterr "CentOS Linux 8 is EOL and not supported." + fi else exiterr "This script only supports CentOS/RHEL 7/8, Rocky Linux and AlmaLinux." fi diff --git a/vpnsetup.sh b/vpnsetup.sh index 7a296aa..1b57d0b 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -84,6 +84,9 @@ check_os() { grep -qi stream "$rh_file" && os_ver=8s grep -qi rocky "$rh_file" && os_type=rocky grep -qi alma "$rh_file" && os_type=alma + if [ "$os_type" = "centos" ] && [ "$os_ver" = "8" ]; then + exiterr "CentOS Linux 8 is EOL and not supported." + fi elif grep -qs "Amazon Linux release 2" /etc/system-release; then os_type=amzn os_ver=2 diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index e27838d..640b7ec 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -78,6 +78,9 @@ check_os() { grep -qi stream "$rh_file" && os_ver=8s grep -qi rocky "$rh_file" && os_type=rocky grep -qi alma "$rh_file" && os_type=alma + if [ "$os_type" = "centos" ] && [ "$os_ver" = "8" ]; then + exiterr "CentOS Linux 8 is EOL and not supported." + fi else exiterr "This script only supports CentOS/RHEL 7/8, Rocky Linux and AlmaLinux." fi