mirror of https://github.com/docker/docs.git
Fixed issue #23787 install script not working for RHEL7 host
Signed-off-by: Ken Cochrane <kencochrane@gmail.com> (cherry picked from commit 0e84474672fb30449028b4f7a678d5ab6a81f102)
This commit is contained in:
parent
3d5903a45f
commit
8f677417d1
|
@ -243,7 +243,8 @@ do_install() {
|
||||||
lsb_dist='centos'
|
lsb_dist='centos'
|
||||||
fi
|
fi
|
||||||
if [ -z "$lsb_dist" ] && [ -r /etc/redhat-release ]; then
|
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
|
fi
|
||||||
if [ -z "$lsb_dist" ] && [ -r /etc/os-release ]; then
|
if [ -z "$lsb_dist" ] && [ -r /etc/os-release ]; then
|
||||||
lsb_dist="$(. /etc/os-release && echo "$ID")"
|
lsb_dist="$(. /etc/os-release && echo "$ID")"
|
||||||
|
|
Loading…
Reference in New Issue