scripts/installer.sh: Correct support for Oracle Linux.

Co-Authored-By: Jonathan Hult <jhult@mythics.com>
Signed-off-by: David Anderson <danderson@tailscale.com>
pull/3124/head
David Anderson 3 years ago committed by Dave Anderson
parent 6cb2705833
commit 8e3b8dbb50

@ -68,11 +68,19 @@ main() {
APT_KEY_TYPE="keyring"
fi
;;
centos|ol)
centos)
OS="$ID"
VERSION="$VERSION_ID"
PACKAGETYPE="dnf"
if expr "$VERSION" : "7.*" >/dev/null; then
if [ "$VERSION" = "7" ]; then
PACKAGETYPE="yum"
fi
;;
ol)
OS="oracle"
VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)"
PACKAGETYPE="dnf"
if [ "$VERSION" = "7" ]; then
PACKAGETYPE="yum"
fi
;;
@ -214,6 +222,13 @@ main() {
OS_UNSUPPORTED=1
fi
;;
oracle)
if [ "$VERSION" != "7" ] && \
[ "$VERSION" != "8" ]
then
OS_UNSUPPORTED=1
fi
;;
rhel)
if [ "$VERSION" != "8" ]
then

Loading…
Cancel
Save