From 915511d30ed1f7ad5ebeb52d3a146553bbc088e3 Mon Sep 17 00:00:00 2001 From: Evgeniy Antonyuk Date: Wed, 30 Oct 2024 16:53:09 +0700 Subject: [PATCH] Add a check for using a LTS version of ubuntu --- install/OneClickInstall/install-Debian/tools.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/OneClickInstall/install-Debian/tools.sh b/install/OneClickInstall/install-Debian/tools.sh index 182f6fb79c..5c9e8e5506 100644 --- a/install/OneClickInstall/install-Debian/tools.sh +++ b/install/OneClickInstall/install-Debian/tools.sh @@ -109,4 +109,9 @@ if [[ ( "${DIST}" == "ubuntu" && "${REV%.*}" -lt 20 ) || ( "${DIST}" == "debian" echo "Your ${DIST} ${REV} operating system has reached the end of its service life." echo "Please consider upgrading your operating system or using a Docker installation." exit 1 +elif [[ "${DIST}" == "ubuntu" && ( $(( ${REV%.*} % 2 )) -ne 0 || "${REV#*.}" -ne 04 ) ]]; then + echo "Only LTS versions of Ubuntu are supported." + echo "You are using ${DIST} ${REV}, which is not an LTS version." + echo "Please consider upgrading to a LTS version or using a Docker installation." + exit 1 fi