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

Co-Authored-By: Jonathan Hult <jhult@mythics.com>
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2021-10-19 19:39:49 -07:00 committed by Dave Anderson
parent 6cb2705833
commit 8e3b8dbb50

View File

@ -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