Merge pull request #23817 from kencochrane/fix_install_script

Fixed install script that was not working for RHEL7 host
Upstream-commit: b02e7faa85fc8e6e0422a78cb73a7af39ef6eb48
Component: engine
This commit is contained in:
Alexander Morozov
2016-06-21 14:20:42 -07:00
committed by GitHub

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")"