From 48cb2c7cb89e09ad4c56607bd39ce52eafba639f Mon Sep 17 00:00:00 2001 From: Constacalm <163557834+Constacalm@users.noreply.github.com> Date: Mon, 1 Apr 2024 14:48:23 +0300 Subject: [PATCH] Update osdetection (ALT Linux) Consider to update osdetection script to detect ALT Linux distro in issue #1465 (https://github.com/CISOfy/lynis/issues/1465) --- include/osdetection | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/osdetection b/include/osdetection index ef4bd587..3aab00ab 100644 --- a/include/osdetection +++ b/include/osdetection @@ -160,6 +160,11 @@ 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 '"') ;; + "altlinux") + LINUX_VERSION="ALT Linux" + OS_NAME="altlinux" + OS_VERSION=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "amzn") LINUX_VERSION="Amazon Linux" OS_NAME="Amazon Linux"