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>2021-05-11 17:56:39 +0300
committerGitHub <noreply@github.com>2021-05-11 17:56:39 +0300
commitd694afadd62295f2d3566ff0b8b3eb762564dfd4 (patch)
treefa0ac30232d2e2405f4a6c01aaf5fc0afd344be5 /include/osdetection
parente1d49ff007a2c5d59b440c57a13f563d95b60576 (diff)
Update osdetection
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/osdetection b/include/osdetection
index 83839dde..6d0e161f 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -326,6 +326,12 @@
OS_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"
OS_REDHAT_OR_CLONE=1
;;
+ "rocky")
+ LINUX_VERSION="Rocky Linux"
+ OS_NAME="Rocky Linux"
+ OS_REDHAT_OR_CLONE=1
+ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ ;;
"rosa")
LINUX_VERSION="ROSA Linux"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
@@ -361,12 +367,6 @@
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 '"')
;;
- "rocky")
- LINUX_VERSION="Rocky Linux"
- OS_NAME="Rocky Linux"
- OS_REDHAT_OR_CLONE=1
- OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
- ;;
*)
ReportException "OS Detection" "Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): ${PROGRAM_SOURCE}"
;;