Clarify supported OS versions for installer (#12803) (#12804)

Fixes #12798

(cherry picked from commit 9bc5054d84)

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
github-actions[bot]
2026-09-07 10:52:23 +10:00
committed by GitHub
co-authored by Matthias Mair
parent 778d44b89c
commit b5c6742491
2 changed files with 22 additions and 7 deletions
+20 -5
View File
@@ -46,6 +46,7 @@ echo "### Installer for InvenTree - source: $publisher/$source_url"
get_distribution get_distribution
echo "### Detected distribution: $OS $VER" echo "### Detected distribution: $OS $VER"
SUPPORTED=true # is this OS supported? SUPPORTED=true # is this OS supported?
OLD_VERSION=false # is this an old OS that is no longer supported?
DIST_OS=${OS,,} DIST_OS=${OS,,}
DIST_VER=$VER DIST_VER=$VER
@@ -54,21 +55,30 @@ case "$OS" in
Ubuntu) Ubuntu)
if [[ $VER == "24.04" ]]; then if [[ $VER == "24.04" ]]; then
SUPPORTED=true SUPPORTED=true
elif [[ $VER == "22.04" ]]; then elif [[ $VER == "26.04" ]]; then
SUPPORTED=true SUPPORTED=true
elif [[ $VER == "20.04" ]]; then elif [[ $VER == "20.04" ]]; then
SUPPORTED=true SUPPORTED=false
OLD_VERSION=true
elif [[ $VER == "22.04" ]]; then
SUPPORTED=false
OLD_VERSION=true
else else
SUPPORTED=false SUPPORTED=false
fi fi
;; ;;
"Debian GNU/Linux" | "debian gnu/linux" | Raspbian) "Debian GNU/Linux" | "debian gnu/linux" | Raspbian)
if [[ $VER == "12" ]]; then if [[ $VER == "13" ]]; then
SUPPORTED=true SUPPORTED=true
elif [[ $VER == "12" ]]; then
SUPPORTED=false
OLD_VERSION=true
elif [[ $VER == "11" ]]; then elif [[ $VER == "11" ]]; then
SUPPORTED=true SUPPORTED=false
OLD_VERSION=true
elif [[ $VER == "10" ]]; then elif [[ $VER == "10" ]]; then
SUPPORTED=true SUPPORTED=false
OLD_VERSION=true
else else
SUPPORTED=false SUPPORTED=false
fi fi
@@ -82,6 +92,11 @@ esac
if [[ $SUPPORTED != "true" ]]; then if [[ $SUPPORTED != "true" ]]; then
echo "This OS is currently not supported." echo "This OS is currently not supported."
if [[ $OLD_VERSION == "true" ]]; then
echo "The detected version ($OS $VER) is no longer supported but a newer version is."
fi
echo "Please install manually using https://docs.inventree.org/en/stable/start/install/" echo "Please install manually using https://docs.inventree.org/en/stable/start/install/"
echo "or check https://github.com/inventree/InvenTree/issues/3836 for packaging for your OS." echo "or check https://github.com/inventree/InvenTree/issues/3836 for packaging for your OS."
echo "If you think this is a bug please file an issue at" echo "If you think this is a bug please file an issue at"
+2 -2
View File
@@ -8,8 +8,8 @@ The InvenTree installer automates the installation procedure for a production In
The installer supports the following Linux distributions: The installer supports the following Linux distributions:
- Debian 11, 12 - Debian 13
- Ubuntu 22.04 LTS, 24.04 LTS - Ubuntu 24.04 LTS, 26.04 LTS
Support for other OS versions is not currently planned. If you are using a different distribution, you can still follow the [docker](./docker.md) or [bare metal](./install.md) installation instructions. Support for other OS versions is not currently planned. If you are using a different distribution, you can still follow the [docker](./docker.md) or [bare metal](./install.md) installation instructions.