Commit d52e98a8 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Merge branch 'tlatham/host_os' into 'master'

Add RHEL as SL/CentOS compatible OS

See merge request !8
parents d313c8f9 afb9c30c
Pipeline #826482 passed with stages
in 1 minute and 13 seconds
......@@ -11,11 +11,11 @@
###############################################################################
if [ -e /etc/redhat-release ] ; then
if grep -q -E '(CentOS|Scientific Linux).*release 7' /etc/redhat-release ; then
if grep -q -E '(CentOS|Scientific Linux|Red Hat Enterprise Linux).*release 7' /etc/redhat-release ; then
_os=centos7
elif grep -q -E '(CentOS|Scientific Linux).*release 6' /etc/redhat-release ; then
elif grep -q -E '(CentOS|Scientific Linux|Red Hat Enterprise Linux).*release 6' /etc/redhat-release ; then
_os=slc6
elif grep -q -E '(CentOS|Scientific Linux).*release 5' /etc/redhat-release ; then
elif grep -q -E '(CentOS|Scientific Linux|Red Hat Enterprise Linux).*release 5' /etc/redhat-release ; then
_os=slc5
fi
elif [ -e /etc/lsb-release ] ; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment