fix: ensure installations treat raspbian as similar to debian buster as possible

This commit is contained in:
Jose Diaz-Gonzalez
2021-10-28 02:41:10 -04:00
parent 88736c1000
commit 57858c1788
7 changed files with 14 additions and 24 deletions

View File

@@ -189,7 +189,7 @@ install-dokku-from-deb-package() {
fi
OS_ID="$(lsb_release -cs 2>/dev/null || echo "bionic")"
if ! in-array "$DOKKU_DISTRO" "debian" "ubuntu"; then
if ! in-array "$DOKKU_DISTRO" "debian" "ubuntu" "raspbian"; then
DOKKU_DISTRO="ubuntu"
OS_ID="bionic"
fi
@@ -204,6 +204,11 @@ install-dokku-from-deb-package() {
if ! in-array "$OS_ID" "${OS_IDS[@]}"; then
OS_ID="bullseye"
fi
elif [[ "$DOKKU_DISTRO" == "raspbian" ]]; then
OS_IDS=("buster")
if ! in-array "$OS_ID" "${OS_IDS[@]}"; then
OS_ID="buster"
fi
fi
echo "--> Installing dokku"