mirror of https://github.com/CISOfy/lynis.git
Added RHEL, renamed CentOS Linux name, reordered items
This commit is contained in:
parent
d2deb63ebb
commit
d703d160ff
|
@ -154,7 +154,7 @@
|
|||
OS_VERSION="Rolling release"
|
||||
;;
|
||||
"centos")
|
||||
LINUX_VERSION="CentOS Linux"
|
||||
LINUX_VERSION="CentOS"
|
||||
OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
OS_NAME="CentOS Linux"
|
||||
OS_REDHAT_OR_CLONE=1
|
||||
|
@ -174,16 +174,10 @@
|
|||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
;;
|
||||
"manjaro")
|
||||
LINUX_VERSION="Manjaro Linux"
|
||||
LINUX_VERSION="Manjaro"
|
||||
OS_FULLNAME="Manjaro Linux"
|
||||
OS_VERSION="Rolling release"
|
||||
;;
|
||||
"ubuntu")
|
||||
LINUX_VERSION="Ubuntu"
|
||||
OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
OS_NAME="Ubuntu Linux"
|
||||
;;
|
||||
"opensuse-tumbleweed")
|
||||
LINUX_VERSION="openSUSE Tumbleweed"
|
||||
OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
|
@ -197,6 +191,20 @@
|
|||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
OS_NAME="openSUSE"
|
||||
;;
|
||||
"ubuntu")
|
||||
LINUX_VERSION="Ubuntu"
|
||||
OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||
OS_NAME="Ubuntu Linux"
|
||||
;;
|
||||
"rhel")
|
||||
LINUX_VERSION="RHEL"
|
||||
OS_NAME=$(grep "^PRETTY_NAME=" /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_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"
|
||||
OS_REDHAT_OR_CLONE=1
|
||||
;;
|
||||
*)
|
||||
ReportException "OS Detection" "Unknown OS found in /etc/os-release"
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue