Merge pull request #23817 from kencochrane/fix_install_script

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

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