updated debian install
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user