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:06:40 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-10-20 14:06:40 +0300
commit77b93ae73df0de716f7dd56f85a8c51406607a54 (patch)
treef1a67bbfe6161f244e3f1325e41bd4d5c5ad4400 /include/osdetection
parente62df74644ac57d96316fc193c49e8540af3b5bf (diff)
Added SLES detection via /etc/os-release
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index 49dba032..eac5eadf 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -273,6 +273,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 '"')
;;
+ "sles")
+ LINUX_VERSION="SLES"
+ OS_NAME="openSUSE"
+ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ ;;
"ubuntu")
LINUX_VERSION="Ubuntu"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')