mirror of https://github.com/CISOfy/lynis.git
Add NixOS to osdetection
Fixes cisofy/lynis#1068. Signed-off-by: Simon Biewald <simon@fam-biewald.de>
This commit is contained in:
parent
183af1d334
commit
3f83b9ac86
|
@ -235,6 +235,12 @@
|
|||
OS_NAME="Manjaro"
|
||||
OS_VERSION="Rolling release"
|
||||
;;
|
||||
"nixos")
|
||||
LINUX_VERSION="NixOS"
|
||||
OS_NAME="NixOS"
|
||||
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 '"')
|
||||
;;
|
||||
"ol")
|
||||
LINUX_VERSION="Oracle Linux"
|
||||
OS_NAME="Oracle Linux"
|
||||
|
|
Loading…
Reference in New Issue