Fixed issue #23787 install script not working for RHEL7 host

Signed-off-by: Ken Cochrane <kencochrane@gmail.com>
This commit is contained in:
Ken Cochrane 2016-06-21 09:40:00 -04:00
parent 96a58bdba8
commit 0e84474672
No known key found for this signature in database
GPG key ID: E74D22C603E63701

View file

@ -243,7 +243,8 @@ do_install() {
lsb_dist='centos'
fi
if [ -z "$lsb_dist" ] && [ -r /etc/redhat-release ]; then
lsb_dist='redhat'
# we use centos for both redhat and centos releases
lsb_dist='centos'
fi
if [ -z "$lsb_dist" ] && [ -r /etc/os-release ]; then
lsb_dist="$(. /etc/os-release && echo "$ID")"