1
0
Fork 0
mirror of synced 2025-04-05 14:13:37 +03:00

Fix runtime exit

This commit is contained in:
Laster K 2019-05-10 15:42:58 +01:00 committed by GitHub
parent 7fdb9c38cb
commit e69513faeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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