Skip to content

Commit

Permalink
Add a check for using a LTS version of ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Oct 30, 2024
1 parent 4f9b860 commit 915511d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install/OneClickInstall/install-Debian/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 915511d

Please sign in to comment.