mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1027 from SergeyDjam/master
Add ROSA Linux detection
This commit is contained in:
commit
c353ce6626
|
@ -261,6 +261,12 @@
|
|||
OS_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"
|
||||
OS_REDHAT_OR_CLONE=1
|
||||
;;
|
||||
"rosa")
|
||||
LINUX_VERSION="ROSA Linux"
|
||||
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_NAME="ROSA Linux"
|
||||
;;
|
||||
"slackware")
|
||||
LINUX_VERSION="Slackware"
|
||||
OS_NAME="Slackware Linux"
|
||||
|
@ -279,7 +285,6 @@
|
|||
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 '"')
|
||||
;;
|
||||
|
||||
*)
|
||||
ReportException "OS Detection" "Unknown OS found in /etc/os-release - Please create issue on GitHub project page: ${PROGRAM_SOURCE}"
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue