From b6309f128bd7d8728dc499ae00c0f66d760499b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Fri, 13 Jan 2023 20:01:48 +0200 Subject: [PATCH] feat: drop support for EOL OS's Debian 8/9 and Ubuntu 16.04 --- README.md | 3 --- xo-install.sh | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3a74d8c..47a8dad 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/xo-install.sh b/xo-install.sh index cb2c2bf..3e9d6f3 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -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