Change to dpkg -i

This commit is contained in:
Michel Roegl-Brunner 2024-12-20 09:14:04 +01:00
parent 775ed987db
commit 9e6770f03b
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,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 &>/dev/null
omd start monitoring &>/dev/null
omd rm monitoringbackup &>/dev/null

View File

@ -24,7 +24,7 @@ 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)
RELEASE="2.3.0p12"
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"