From 1794926b9a6f7ab668a940af5bb242cd15afc8e6 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Fri, 20 Dec 2024 09:12:57 +0100 Subject: [PATCH] Change to dpkg -i --- ct/checkmk.sh | 2 +- install/checkmk-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/checkmk.sh b/ct/checkmk.sh index 4a08f504a..e76a69d8f 100644 --- a/ct/checkmk.sh +++ b/ct/checkmk.sh @@ -35,7 +35,7 @@ function update_script() { omd stop monitoring &>/dev/null omd cp monitoring monitoringbackup &>/dev/null wget -q https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb -O /opt/checkmk.deb - apt-get install -y /opt/checkmk.deb &>/dev/null + dpkg -i /opt/checkmk.deb &>/dev/null omd --force -V ${RELEASE}.cre update --conflict=install monitoring &>/dev/null omd start monitoring &>/dev/null omd -f rm monitoringbackup &>/dev/null diff --git a/install/checkmk-install.sh b/install/checkmk-install.sh index ae2d0c426..9c44d8414 100644 --- a/install/checkmk-install.sh +++ b/install/checkmk-install.sh @@ -24,7 +24,7 @@ msg_ok "Installed Dependencies" msg_info "Install Checkmk" RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags | grep "name" | awk '{print substr($2, 3, length($2)-4) }' | grep -v "*-rc" | tail -n +2 | head -n 1) wget -q https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb -O /opt/checkmk.deb -$STD apt-get install -y /opt/checkmk.deb +$STD dpkg -i /opt/checkmk.deb echo "${RELEASE}" >"/opt/checkmk_version.txt" msg_ok "Installed Checkmk"