Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Shastri <jayaramaditya1515@gmail.com>2020-05-15 06:50:43 +0300
committerAditya Shastri <jayaramaditya1515@gmail.com>2020-05-15 06:51:11 +0300
commit2b0a0ba2e1b98563d4984c7bcb59769672c11bd0 (patch)
treeea206e5cd92b8530a2074a421147cce87fdec191
parente410d68ce6bed20e3d44e797ea0e10ff33ab9bb1 (diff)
Addedd OS detection for Oracle Linux
-rw-r--r--include/osdetection6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index 08fd931e..7ad153d6 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -195,6 +195,12 @@
OS_NAME="Manjaro"
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")
LINUX_VERSION="openSUSE Tumbleweed"
# It's rolling release but has a snapshot version (the date of the snapshot)