From 3d8eda5b72858c131727b9c4d1c544b77bdbc3ef Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Sat, 29 Oct 2022 15:10:41 -0700 Subject: [PATCH] scripts/install.sh: add RHEL7. Fixes https://github.com/tailscale/tailscale/issues/5729 Signed-off-by: Denton Gentry --- scripts/installer.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 621a60a08..afa9c9dd2 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -163,6 +163,9 @@ main() { OS="$ID" VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)" PACKAGETYPE="dnf" + if [ "$VERSION" = "7" ]; then + PACKAGETYPE="yum" + fi ;; fedora) OS="$ID" @@ -326,8 +329,9 @@ main() { fi ;; rhel) - if [ "$VERSION" != "8" ] && \ - [ "$VERSION" != "9" ] + if [ "$VERSION" != "7" ] && \ + [ "$VERSION" != "8" ] && \ + [ "$VERSION" != "9" ] then OS_UNSUPPORTED=1 fi