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:
authorFred <fbriand@r83.lan>2021-05-11 17:15:23 +0300
committerFred <fbriand@r83.lan>2021-05-11 17:15:23 +0300
commite1d49ff007a2c5d59b440c57a13f563d95b60576 (patch)
tree301f445852e6213d24563f564362a28ca95a7820 /include
parent33ff247d671c2190b8986665f0ae79d9da4c20e0 (diff)
Added detection of Rocky Linux to include/osdetection
Diffstat (limited to 'include')
-rw-r--r--include/osdetection6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index 459bc72e..83839dde 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -361,6 +361,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 '"')
;;
+ "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}"
;;