From d0f5ee7df9d9f65406122869d53d10ddd3c1729e Mon Sep 17 00:00:00 2001 From: vassap2022 <97514323+vassap2022@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:44:17 +0200 Subject: [PATCH] add gardenlinux in osdetection Fixes: #1507 --- include/osdetection | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/osdetection b/include/osdetection index fa2046d5..5890cd7f 100644 --- a/include/osdetection +++ b/include/osdetection @@ -504,6 +504,14 @@ 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 '"') ;; + "gardenlinux") + LINUX_VERSION="Garden Linux" + LINUX_VERSION_LIKE="Debian" + OS_NAME=$(grep "^NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION=$(grep "^GARDENLINUX_VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^GARDENLINUX_VERSION=" /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 contents (cat /etc/os-release): ${PROGRAM_SOURCE}" ;;