Commit 2c1eace3 authored by UmaShankar Avagadda's avatar UmaShankar Avagadda Committed by umashankar avagadda

Added rhel8

parent f1ea0605
......@@ -25,6 +25,11 @@ if [ -f /etc/redhat-release ]; then
i=""
fi
grep "Red Hat Enterprise Linux.*release 8" /etc/redhat-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo "RHEL8${i}"
exit 0
fi
grep "Red Hat Enterprise Linux.*release 7" /etc/redhat-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo "RHEL7${i}"
......@@ -36,6 +41,11 @@ if [ -f /etc/redhat-release ]; then
exit 0
fi
grep "CentOS Linux release 8" /etc/redhat-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo "RHEL8${i}"
exit 0
fi
grep "CentOS Linux release 7" /etc/redhat-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo "RHEL7${i}"
......@@ -47,6 +57,11 @@ if [ -f /etc/redhat-release ]; then
exit 0
fi
grep "Scientific Linux release 8" /etc/redhat-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo "RHEL8${i}"
exit 0
fi
grep "Scientific Linux release 7" /etc/redhat-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo "RHEL7${i}"
......
include $(DEF_ROOT)/package-rpm.def
PKG_APPEND.RHEL8_64 = .el8
PKG_APPEND.RHEL7_64 = .el7
PKG_APPEND.RHEL6_64 = .el6
PKG_OS_TAG.RHEL8_64 = r8
PKG_OS_TAG.RHEL7_64 = r7
PKG_OS_TAG.RHEL6_64 = r6
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