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:
authorMichael Boelen <michael.boelen@cisofy.com>2021-05-11 12:03:43 +0300
committerGitHub <noreply@github.com>2021-05-11 12:03:43 +0300
commitac313553fb090879f0f0a2487d0792ffd5e144fa (patch)
treefabe4c9d8a41a09a447ee4728d6bf8fda5e3a65e /include/osdetection
parent3a847c57059969af91a031b2a28c977734e95c59 (diff)
Added AlmaLinux
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index cf35d144..6a8caf09 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -144,6 +144,13 @@
OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
if [ -n "${OS_ID}" ]; then
case ${OS_ID} in
+ "almalinux")
+ LINUX_VERSION="AlmaLinux"
+ OS_NAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ OS_REDHAT_OR_CLONE=1
+ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ ;;
"alpine")
LINUX_VERSION="Alpine Linux"
OS_NAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')