Commit afb9c30c authored by Thomas Edward Latham's avatar Thomas Edward Latham
Browse files

Add RHEL as SL/CentOS compatible OS

parent d313c8f9
Pipeline #826427 passed with stage
in 50 seconds
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
############################################################################### ###############################################################################
if [ -e /etc/redhat-release ] ; then 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 _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 _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 _os=slc5
fi fi
elif [ -e /etc/lsb-release ] ; then 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