diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-10-20 14:06:40 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2020-10-20 14:06:40 +0300 |
commit | 77b93ae73df0de716f7dd56f85a8c51406607a54 (patch) | |
tree | f1a67bbfe6161f244e3f1325e41bd4d5c5ad4400 /include/osdetection | |
parent | e62df74644ac57d96316fc193c49e8540af3b5bf (diff) |
Added SLES detection via /etc/os-release
Diffstat (limited to 'include/osdetection')
-rw-r--r-- | include/osdetection | 6 |
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 '"') |