updated debian install

This commit is contained in:
2024-07-10 14:43:04 +00:00
parent 581b237296
commit d1df256e40

View File

@@ -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"