diff --git a/tools/addon/netdata.sh b/tools/addon/netdata.sh index f3e54ff6..1f2d598f 100644 --- a/tools/addon/netdata.sh +++ b/tools/addon/netdata.sh @@ -51,11 +51,11 @@ pve_check() { PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')" # Proxmox VE 8.x: allow 8.0 – 8.9 - if [[ "$PVE_VER" =~ ^8\.([0-9]+)$ ]]; then + if [[ "$PVE_VER" =~ ^9\.([0-9]+)(\.[0-9]+)?$ ]]; then local MINOR="${BASH_REMATCH[1]}" - if ((MINOR < 0 || MINOR > 9)); then + if ((MINOR != 0)); then msg_error "Unsupported Proxmox VE version: $PVE_VER" - msg_error "Supported versions: 8.0 – 8.9 or 9.0" + msg_error "Supported versions: 8.0 – 8.9 or 9.0.x" exit 1 fi return 0