Skip to content

Commit

Permalink
Disallow --security and --tunings where inappropriate.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jun 10, 2024
1 parent e5d37b7 commit 7b25a9e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion install-perfsonar
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ OPTIONS:
--dry-run Don't do anything
--ps-repo-version V Use perfSONAR repo verion V on EL systems
NOTE:
The --security and --tunings switches are for the testpoint and
toolkit bundles only.
Example usage from GitHub:
curl -s https://raw.githubusercontent.com/perfsonar/project/master/install-perfsonar \\
Expand Down Expand Up @@ -207,10 +212,16 @@ case "${REPO}" in
esac

case "${PS_BUNDLE}" in
tools|testpoint|core|toolkit)
testpoint|toolkit)
true # This is fine.
;;
tools|core)
$SECURITY && die "The --security switch is inappropriate for the ${PS_BUNDLE} bundle."
$TUNINGS && die "The --tunings switch is inappropriate for the ${PS_BUNDLE} bundle."
;;
archive)
$SECURITY && die "The --security switch is inappropriate for the ${PS_BUNDLE} bundle."
$TUNINGS && die "The --tunings switch is inappropriate for the ${PS_BUNDLE} bundle."
[ \( "${OS_FAMILY}" = "RedHat" \) \
-o \( "${OS_DISTRO}" = "Debian" -a "${OS_MAJOR}" -ge 11 \) \
-o \( "${OS_DISTRO}" = "Ubuntu" -a "${OS_MAJOR}" -ge 22 \) \
Expand Down

0 comments on commit 7b25a9e

Please sign in to comment.