Files
ProxmoxVE/ct/checkmk.sh
CanbiZ (MickLesk) 6c0d7d4482 fix: replace hardcoded OS codename/version detection with get_os_info helpers
- checkmk: use github_api_call+jq for tag fetch, get_os_info codename in deb URL, strip +security suffix, bump default to Debian 13
- cockpit: remove source /etc/os-release, use get_os_info codename for backports suite/install, get_os_version_major for version check
- flaresolverr: replace raw grep on /etc/os-release with get_os_version_major
- lldap: remove source /etc/os-release, use get_os_info id+version for repo URL
- mqtt: remove unused source /etc/os-release
- pangolin: replace . /etc/os-release + VERSION_CODENAME with get_os_info codename
- paperless-ngx: replace both . /etc/os-release + VERSION_CODENAME checks with get_os_info codename
- photoprism: replace hardcoded bookworm in libheif URL with get_os_info codename
- proxmox-datacenter-manager: replace grep on os-release string with get_os_version_major
- wireguard: replace . /etc/os-release + VERSION_CODENAME with get_os_info codename
- zabbix: replace . /etc/os-release + VERSION_CODENAME with get_os_info codename
2026-04-09 11:20:40 +02:00

57 lines
1.8 KiB
Bash

#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Michel Roegl-Brunner (michelroegl-brunner)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://checkmk.com/
APP="checkmk"
var_tags="${var_tags:-monitoring}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-6}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /opt/checkmk_version.txt ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags?per_page=50 | jq -r '.[].name' | sed 's/^v//' | grep -Ev 'rc|b' | sort -V | tail -n 1)
RELEASE="${RELEASE%%+*}"
msg_info "Updating ${APP} to v${RELEASE}"
$STD omd stop monitoring
$STD omd cp monitoring monitoringbackup
curl -fsSL "https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.$(get_os_info codename)_amd64.deb" -o "/opt/checkmk.deb"
$STD apt-get install -y /opt/checkmk.deb
$STD omd --force -V ${RELEASE}.cre update --conflict=install monitoring
$STD omd start monitoring
$STD omd -f rm monitoringbackup
$STD omd cleanup
rm -rf /opt/checkmk.deb
msg_ok "Updated ${APP}"
msg_ok "Updated successfully!"
exit
}
start
build_container
description
msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/monitoring${CL}"