Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-10-20 14:11:54 +0300
committerGitHub <noreply@github.com>2020-10-20 14:11:54 +0300
commit3dd8fba196657e6e9ca1ae3ee5b1ece5089a25f9 (patch)
tree4ca2a358b2ca66cc78249d4e5c4aefaa803a67c4 /include/osdetection
parent77b93ae73df0de716f7dd56f85a8c51406607a54 (diff)
parent68e8ef862e4da525efc1b157e74e8789a50b32e8 (diff)
Merge pull request #1043 from konstruktoid/mageia
Mageia got /etc/os-release and add Mageia EOL dates
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/osdetection b/include/osdetection
index eac5eadf..89455e0f 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -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"
@@ -407,13 +413,6 @@
LINUX_VERSION="Fedora"
fi
- # Mageia (has also /etc/megaia-release)
- FIND=$(grep "Mageia" /etc/redhat-release)
- if [ ! "${FIND}" = "" ]; then
- OS_FULLNAME=$(grep "^Mageia" /etc/redhat-release)
- OS_VERSION=$(grep "^Mageia" /etc/redhat-release | awk '{ if ($2=="release") { print $3 } }')
- LINUX_VERSION="Mageia"
- fi
# Oracle Enterprise Linux
FIND=$(grep "Enterprise Linux Enterprise Linux Server" /etc/redhat-release)