diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-08-13 23:00:30 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-08-13 23:00:30 +0300 |
commit | e5b8047133a2f5107f4096c265ff075083e31776 (patch) | |
tree | 5c8e379571a77d66216e142d190e8b4bc69cf383 /include/osdetection | |
parent | 3e392c8e6c6b9dc4df347180183b29b586b47881 (diff) |
Added data and detection of Amazon Linux
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 20e50b26..164a4597 100644 --- a/include/osdetection +++ b/include/osdetection @@ -141,6 +141,12 @@ OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') if [ -n "${OS_ID}" ]; then case ${OS_ID} in + "amzn") + LINUX_VERSION="Amazon Linux" + OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_NAME="Amazon Linux" + ;; "arch") LINUX_VERSION="Arch Linux" OS_FULLNAME="Arch Linux" |