Addedd OS detection for Oracle Linux

This commit is contained in:
Aditya Shastri 2020-05-14 20:50:43 -07:00
parent e410d68ce6
commit 2b0a0ba2e1

View File

@ -195,6 +195,12 @@
OS_NAME="Manjaro" OS_NAME="Manjaro"
OS_VERSION="Rolling release" OS_VERSION="Rolling release"
;; ;;
"ol")
LINUX_VERSION="Oracle Linux"
OS_NAME="Oracle Linux"
OS_REDHAT_OR_CLONE=1
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;;
"opensuse-tumbleweed") "opensuse-tumbleweed")
LINUX_VERSION="openSUSE Tumbleweed" LINUX_VERSION="openSUSE Tumbleweed"
# It's rolling release but has a snapshot version (the date of the snapshot) # It's rolling release but has a snapshot version (the date of the snapshot)