LMDE check added to `check_forked()` function - See #16498
| ... | ... |
@@ -53,6 +53,7 @@ echo_docker_as_nonroot() {
|
| 53 | 53 |
|
| 54 | 54 |
# Check if this is a forked Linux distro |
| 55 | 55 |
check_forked() {
|
| 56 |
+ |
|
| 56 | 57 |
# Check for lsb_release command existence, it usually exists in forked distros |
| 57 | 58 |
if command_exists lsb_release; then |
| 58 | 59 |
# Check if the `-u` option is supported |
| ... | ... |
@@ -76,6 +77,20 @@ check_forked() {
|
| 76 | 76 |
cat <<-EOF |
| 77 | 77 |
Upstream release is '$lsb_dist' version '$dist_version'. |
| 78 | 78 |
EOF |
| 79 |
+ else |
|
| 80 |
+ if [ -r /etc/debian_version ]; then |
|
| 81 |
+ # We're Debian and don't even know it! |
|
| 82 |
+ lsb_dist=debian |
|
| 83 |
+ dist_version="$(cat /etc/debian_version | sed 's/\/.*//' | sed 's/\..*//')" |
|
| 84 |
+ case "$dist_version" in |
|
| 85 |
+ 8) |
|
| 86 |
+ dist_version="jessie" |
|
| 87 |
+ ;; |
|
| 88 |
+ 7) |
|
| 89 |
+ dist_version="wheezy" |
|
| 90 |
+ ;; |
|
| 91 |
+ esac |
|
| 92 |
+ fi |
|
| 79 | 93 |
fi |
| 80 | 94 |
fi |
| 81 | 95 |
} |