From e69513faeb82fb9dee55ae452cf1da9562e8b508 Mon Sep 17 00:00:00 2001 From: Laster K Date: Fri, 10 May 2019 15:42:58 +0100 Subject: [PATCH] Fix runtime exit --- vpnsetup_centos.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 85e0bfa..ae54c2d 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -48,11 +48,11 @@ check_ip() { vpnsetup() { -if ! grep -qs -e "release 6" -e "release 7" /etc/redhat-release; then - exiterr "This script only supports CentOS/RHEL 6 and 7." -elif grep -q "release 8" /etc/redhat-release; then - bigecho "No support for RHEL 8 will be provided..." +if grep -q "release 8" /etc/redhat-release; then + bigecho "No assistance for RHEL 8 will be provided..." RHEL8BETA=true +elif ! grep -qs -e "release 6" -e "release 7" /etc/redhat-release; then + exiterr "This script only supports CentOS/RHEL 6, 7 and 8 Beta." fi if [ -f /proc/user_beancounters ]; then