mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
Merge pull request #583 from vvoland/update-distro
install: Detect Ubuntu codename without /etc/lsb-release
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -507,7 +507,10 @@ do_install() {
|
||||
case "$lsb_dist" in
|
||||
|
||||
ubuntu)
|
||||
if command_exists lsb_release; then
|
||||
if [ -r /etc/os-release ]; then
|
||||
dist_version="$(. /etc/os-release && echo "$VERSION_CODENAME")"
|
||||
fi
|
||||
if [ -z "$dist_version" ] && command_exists lsb_release; then
|
||||
dist_version="$(lsb_release --codename | cut -f2)"
|
||||
fi
|
||||
if [ -z "$dist_version" ] && [ -r /etc/lsb-release ]; then
|
||||
|
||||
Reference in new issue
Block a user