scripts/install.sh: add RHEL7.

Fixes https://github.com/tailscale/tailscale/issues/5729

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
pull/5922/merge
Denton Gentry 2 years ago committed by Denton Gentry
parent 5677ed1e85
commit 3d8eda5b72

@ -163,6 +163,9 @@ main() {
OS="$ID" OS="$ID"
VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)" VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)"
PACKAGETYPE="dnf" PACKAGETYPE="dnf"
if [ "$VERSION" = "7" ]; then
PACKAGETYPE="yum"
fi
;; ;;
fedora) fedora)
OS="$ID" OS="$ID"
@ -326,8 +329,9 @@ main() {
fi fi
;; ;;
rhel) rhel)
if [ "$VERSION" != "8" ] && \ if [ "$VERSION" != "7" ] && \
[ "$VERSION" != "9" ] [ "$VERSION" != "8" ] && \
[ "$VERSION" != "9" ]
then then
OS_UNSUPPORTED=1 OS_UNSUPPORTED=1
fi fi

Loading…
Cancel
Save