feat: drop support for EOL OS's

Debian 8/9 and Ubuntu 16.04
This commit is contained in:
Roni Väyrynen
2023-01-13 20:01:48 +02:00
parent 78c9a39536
commit b6309f128b
2 changed files with 4 additions and 7 deletions

View File

@@ -44,12 +44,9 @@ Supported Linux distributions and versions:
- Rocky Linux 8
- Debian 11
- Debian 10
- Debian 9
- Debian 8
- Ubuntu 22.04
- Ubuntu 20.04
- Ubuntu 18.04
- Ubuntu 16.04
Only x86_64 architecture is supported. For all those raspberry pi users out there, check [container](https://hub.docker.com/r/ronivay/xen-orchestra) instead.

View File

@@ -1278,13 +1278,13 @@ function CheckOS {
exit 1
fi
if [[ "$OSNAME" == "Debian" ]] && [[ ! "$OSVERSION" =~ ^(8|9|10|11)$ ]]; then
printfail "Only Debian 8/9/10/11 supported"
if [[ "$OSNAME" == "Debian" ]] && [[ ! "$OSVERSION" =~ ^(10|11)$ ]]; then
printfail "Only Debian 10/11 supported"
exit 1
fi
if [[ "$OSNAME" == "Ubuntu" ]] && [[ ! "$OSVERSION" =~ ^(16|18|20|22)$ ]]; then
printfail "Only Ubuntu 16/18/20/22 supported"
if [[ "$OSNAME" == "Ubuntu" ]] && [[ ! "$OSVERSION" =~ ^(18|20|22)$ ]]; then
printfail "Only Ubuntu 18/20/22 supported"
exit 1
fi