Skip to content

Commit

Permalink
Balk at installing on unsupported OSes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Dec 17, 2024
1 parent c547e2b commit 8cf3fa6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions install-perfsonar
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ trap cleanup EXIT

install_redhat()
{
# TODO: Need to make an exception for Oracle 8. See #1393.
MAJOR_MIN=9
[ "${OS_MAJOR}" -ge "${MAJOR_MIN}" ] \
|| die "perfSONAR can only be installed on ${OS_DISTRO} ${MAJOR_MIN} or later."

case "${OS_MAJOR}" in
7)
# TODO: This can go after 5.2 is released.
Expand Down Expand Up @@ -391,6 +396,21 @@ debian_add_key()

install_debian()
{
case "${OS_DISTRO}" in
Debian)
MAJOR_MIN=11
;;
Ubuntu)
MAJOR_MIN=20
;;
*)
die "${OS_DISTRO} is not supported."
;;
esac

[ "${OS_MAJOR}" -ge "${MAJOR_MIN}" ] \
|| die "perfSONAR can only be installed on ${OS_DISTRO} ${MAJOR_MIN} or later."

export DEBIAN_FRONTEND=noninteractive

narrate Installing prerequisites
Expand Down

0 comments on commit 8cf3fa6

Please sign in to comment.