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-17 14:26:11 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-10-17 14:26:11 +0300
commit6238f5bc8f821ddc8aab371d9bb36e025c281c07 (patch)
tree2df4f448cec4927e787eff75a8f40c6fd42789ba /include/osdetection
parentc353ce662696de931ed154b645000c7624e2dc46 (diff)
Define RHEL as 'RHEL'
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection
index 107ee28f..5aa5878b 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -255,7 +255,7 @@
;;
"rhel")
LINUX_VERSION="RHEL"
- OS_NAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ OS_NAME="RHEL"
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_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"