mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
Merge pull request #30 from SchuhMichael/master
Fixed install.sh for Centos7 with lsb_release command available
This commit is contained in:
commit
6fa437d7d1
1 file changed
+6
@@ -349,6 +349,12 @@ do_install() {
|
||||
esac
|
||||
;;
|
||||
|
||||
centos)
|
||||
if [ -z "$dist_version" ] && [ -r /etc/os-release ]; then
|
||||
dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
if command_exists lsb_release; then
|
||||
dist_version="$(lsb_release --codename | cut -f2)"
|
||||
|
||||
Reference in new issue
Block a user