Commit 563148e2 by Hartnell Foster Committed by Stéphane Graber

Added OR statement for cases of ID = rhel in RHEL 7+

parent e1a2c96c
...@@ -137,8 +137,9 @@ if [ "${CPE_NAME}" != "" -a "${ID}" = "centos" -a "${VERSION_ID}" != "" ] ...@@ -137,8 +137,9 @@ if [ "${CPE_NAME}" != "" -a "${ID}" = "centos" -a "${VERSION_ID}" != "" ]
then then
centos_host_ver=${VERSION_ID} centos_host_ver=${VERSION_ID}
is_centos=true is_centos=true
elif [ "${CPE_NAME}" != "" -a "${ID}" = "redhat" -a "${VERSION_ID}" != "" ] elif [ "${CPE_NAME}" != "" -a "${ID}" = "redhat" -o "${ID}" = "rhel" -a "${VERSION_ID}" != "" ]
then then
# RHEL 7+ /etc/os-release ID = 'rhel', which doesn't enter this elif without the added OR statement
redhat_host_ver=${VERSION_ID} redhat_host_ver=${VERSION_ID}
is_redhat=true is_redhat=true
elif [ -e /etc/centos-release ] elif [ -e /etc/centos-release ]
...@@ -394,7 +395,7 @@ configure_centos_init() ...@@ -394,7 +395,7 @@ configure_centos_init()
# power-status-changed - shutdown on SIGPWR # power-status-changed - shutdown on SIGPWR
# #
start on power-status-changed start on power-status-changed
exec /sbin/shutdown -h now "SIGPWR received" exec /sbin/shutdown -h now "SIGPWR received"
EOF EOF
fi fi
......
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