diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2021-05-11 12:03:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 12:03:43 +0300 |
commit | ac313553fb090879f0f0a2487d0792ffd5e144fa (patch) | |
tree | fabe4c9d8a41a09a447ee4728d6bf8fda5e3a65e /include | |
parent | 3a847c57059969af91a031b2a28c977734e95c59 (diff) |
Added AlmaLinux
Diffstat (limited to 'include')
-rw-r--r-- | include/osdetection | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection index cf35d144..6a8caf09 100644 --- a/include/osdetection +++ b/include/osdetection @@ -144,6 +144,13 @@ OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') if [ -n "${OS_ID}" ]; then case ${OS_ID} in + "almalinux") + LINUX_VERSION="AlmaLinux" + OS_NAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_REDHAT_OR_CLONE=1 + 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 '"') + ;; "alpine") LINUX_VERSION="Alpine Linux" OS_NAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') |