From d1df256e40e42a86e45e0f23f567bdf0e17f2bbf Mon Sep 17 00:00:00 2001 From: jgaunt Date: Wed, 10 Jul 2024 14:43:04 +0000 Subject: [PATCH] updated debian install --- checkmk.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/checkmk.sh b/checkmk.sh index 21ae110..84e7fdc 100644 --- a/checkmk.sh +++ b/checkmk.sh @@ -37,11 +37,7 @@ tmpdir=$(mktemp -d) if [ -x /usr/bin/dpkg ]; then tmpfile=${tmpdir}/checkmkagent.deb wget -O ${tmpfile} --header="${AUTHORIZATION_HEADER}" "${API_URL}/domain-types/agent/actions/download/invoke?os_type=linux_deb" - if dpkg -l check-mk-agent > /dev/null; then - dpkg -P check-mk-agent - fi - apt-get install xinetd curl - dpkg -i ${tmpfile} + apt-get install -y ${tmpfile} elif [ -x /usr/bin/rpm -o -x /bin/rpm ]; then tmpfile=${tmpdir}/checkmkagent.rpm wget -O ${tmpfile} --header="${AUTHORIZATION_HEADER}" "${API_URL}/domain-types/agent/actions/download/invoke?os_type=linux_rpm"