mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
Update osdetection
This commit is contained in:
parent
e1d49ff007
commit
d694afadd6
@ -326,6 +326,12 @@
|
|||||||
OS_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"
|
OS_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"
|
||||||
OS_REDHAT_OR_CLONE=1
|
OS_REDHAT_OR_CLONE=1
|
||||||
;;
|
;;
|
||||||
|
"rocky")
|
||||||
|
LINUX_VERSION="Rocky Linux"
|
||||||
|
OS_NAME="Rocky Linux"
|
||||||
|
OS_REDHAT_OR_CLONE=1
|
||||||
|
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||||
|
;;
|
||||||
"rosa")
|
"rosa")
|
||||||
LINUX_VERSION="ROSA Linux"
|
LINUX_VERSION="ROSA Linux"
|
||||||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||||
@ -360,12 +366,6 @@
|
|||||||
OS_NAME="Zorin OS"
|
OS_NAME="Zorin OS"
|
||||||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
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 '"')
|
OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||||
;;
|
|
||||||
"rocky")
|
|
||||||
LINUX_VERSION="Rocky Linux"
|
|
||||||
OS_NAME="Rocky Linux"
|
|
||||||
OS_REDHAT_OR_CLONE=1
|
|
||||||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
ReportException "OS Detection" "Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): ${PROGRAM_SOURCE}"
|
ReportException "OS Detection" "Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): ${PROGRAM_SOURCE}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user