Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ check_forked() {
else
# We're Debian and don't even know it!
lsb_dist=debian

# now, we can check /etc/os-release for ID_LIKE and UBUNTU_CODENAME
if [ -r /etc/os-release ]; then
base_dist="$(. /etc/os-release && echo "$ID_LIKE")"
if [ "$base_dist" = "ubuntu" ]; then
lsb_dist="$base_dist"
dist_version="$(. /etc/os-release && echo "$UBUNTU_CODENAME")"
fi
fi
fi
dist_version="$(sed 's/\/.*//' /etc/debian_version | sed 's/\..*//')"
case "$dist_version" in
Expand Down Expand Up @@ -348,6 +357,8 @@ do_install() {
# Check if this is a forked Linux distro
check_forked

echo "Detected distribution to use for installation: $lsb_dist and version $dist_version"

# Run setup for each distro accordingly
case "$lsb_dist" in
ubuntu|debian|raspbian)
Expand Down