mirror of https://github.com/CISOfy/lynis.git
mageia got /etc/os-release
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
f0ded6c2a3
commit
68e8ef862e
|
@ -212,6 +212,12 @@
|
|||
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 '"')
|
||||
;;
|
||||
"mageia")
|
||||
LINUX_VERSION="Mageia"
|
||||
OS_NAME="Mageia"
|
||||
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 '"')
|
||||
;;
|
||||
"manjaro")
|
||||
LINUX_VERSION="Manjaro"
|
||||
OS_FULLNAME="Manjaro Linux"
|
||||
|
@ -396,13 +402,6 @@
|
|||
LINUX_VERSION="Fedora"
|
||||
fi
|
||||
|
||||
# Mageia (/etc/redhat-release -> /etc/mageia-release link)
|
||||
FIND=$(grep "Mageia" /etc/mageia-release)
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
OS_FULLNAME=$(grep "^Mageia" /etc/mageia-release)
|
||||
OS_VERSION=$(grep "^Mageia" /etc/mageia-release | awk '{ if ($2=="release") { print $3 } }')
|
||||
LINUX_VERSION="Mageia"
|
||||
fi
|
||||
|
||||
# Oracle Enterprise Linux
|
||||
FIND=$(grep "Enterprise Linux Enterprise Linux Server" /etc/redhat-release)
|
||||
|
|
Loading…
Reference in New Issue