mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Try me now, no linuxmint
mentions needed
Signed-off-by: Dan Levy <dan@danlevy.net>
This commit is contained in:
parent
ec4b71b64a
commit
9728269424
1 changed files with 15 additions and 0 deletions
|
@ -53,6 +53,7 @@ echo_docker_as_nonroot() {
|
||||||
|
|
||||||
# Check if this is a forked Linux distro
|
# Check if this is a forked Linux distro
|
||||||
check_forked() {
|
check_forked() {
|
||||||
|
|
||||||
# Check for lsb_release command existence, it usually exists in forked distros
|
# Check for lsb_release command existence, it usually exists in forked distros
|
||||||
if command_exists lsb_release; then
|
if command_exists lsb_release; then
|
||||||
# Check if the `-u` option is supported
|
# Check if the `-u` option is supported
|
||||||
|
@ -76,6 +77,20 @@ check_forked() {
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
Upstream release is '$lsb_dist' version '$dist_version'.
|
Upstream release is '$lsb_dist' version '$dist_version'.
|
||||||
EOF
|
EOF
|
||||||
|
else
|
||||||
|
if [ -r /etc/debian_version ]; then
|
||||||
|
# We're Debian and don't even know it!
|
||||||
|
lsb_dist=debian
|
||||||
|
dist_version="$(cat /etc/debian_version | sed 's/\/.*//' | sed 's/\..*//')"
|
||||||
|
case "$dist_version" in
|
||||||
|
8)
|
||||||
|
dist_version="jessie"
|
||||||
|
;;
|
||||||
|
7)
|
||||||
|
dist_version="wheezy"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue