浏览代码

Merge pull request #23817 from kencochrane/fix_install_script

Fixed install script that was not working for RHEL7 host
Alexander Morozov 9 年之前
父节点
当前提交
b02e7faa85
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      hack/install.sh

+ 2 - 1
hack/install.sh

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