diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:22 +0000 |
commit | c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 (patch) | |
tree | 9754ff1ca740f6346cf8483ec915d4054bc5da2d /daemon/system-info.sh | |
parent | Adding upstream version 1.43.2. (diff) | |
download | netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.tar.xz netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.zip |
Adding upstream version 1.44.3.upstream/1.44.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | daemon/system-info.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/system-info.sh b/daemon/system-info.sh index 2a3ba7d76..aaca7fd4b 100755 --- a/daemon/system-info.sh +++ b/daemon/system-info.sh @@ -57,7 +57,7 @@ if [ -z "${VIRTUALIZATION}" ]; then VIRTUALIZATION="unknown" VIRT_DETECTION="none" elif [ "$VIRTUALIZATION" != "none" ] && [ "$VIRTUALIZATION" != "unknown" ]; then - VIRTUALIZATION=$(virtualization_normalize_name $VIRTUALIZATION) + VIRTUALIZATION=$(virtualization_normalize_name "$VIRTUALIZATION") fi else # Passed from outside - probably in docker run @@ -101,6 +101,10 @@ if [ "${CONTAINER}" = "unknown" ]; then CONT_DETECTION="kubernetes" fi + if [ "${KERNEL_NAME}" = FreeBSD ] && command -v sysctl && sysctl security.jail.jailed 2>/dev/null | grep -q "1$"; then + CONTAINER="jail" + CONT_DETECTION="sysctl" + fi fi # ------------------------------------------------------------------------------------------------- |