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:
authorThomas Sjögren <konstruktoid@users.noreply.github.com>2020-10-19 13:07:16 +0300
committerThomas Sjögren <konstruktoid@users.noreply.github.com>2020-10-19 13:07:16 +0300
commitf0ded6c2a3408d361145952234bfcd306eae0d23 (patch)
tree8a6bde36dc4ad1416edf68ef1b473ed82f608dad /include/osdetection
parent644683a0e4efabef007a3f3e6fe36d9eb2e7d3c3 (diff)
add Mageia EOL dates and grep /etc/mageia-release
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/osdetection b/include/osdetection
index 5aa5878b..441ef6bd 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -396,11 +396,11 @@
LINUX_VERSION="Fedora"
fi
- # Mageia (has also /etc/megaia-release)
- FIND=$(grep "Mageia" /etc/redhat-release)
+ # Mageia (/etc/redhat-release -> /etc/mageia-release link)
+ FIND=$(grep "Mageia" /etc/mageia-release)
if [ ! "${FIND}" = "" ]; then
- OS_FULLNAME=$(grep "^Mageia" /etc/redhat-release)
- OS_VERSION=$(grep "^Mageia" /etc/redhat-release | awk '{ if ($2=="release") { print $3 } }')
+ OS_FULLNAME=$(grep "^Mageia" /etc/mageia-release)
+ OS_VERSION=$(grep "^Mageia" /etc/mageia-release | awk '{ if ($2=="release") { print $3 } }')
LINUX_VERSION="Mageia"
fi