Skip to content

Commit 9aa76e8

Browse files
authored
fix(netdata): extend PVE version support to 9.x (#14714)
1 parent 219c4e8 commit 9aa76e8

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

tools/addon/netdata.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function msg_ok() {
4747
function msg_error() { echo -e "${RD}$1${CL}"; }
4848

4949
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
50-
# Supported: Proxmox VE 8.0.x – 8.9.x and 9.0–9.1.x
50+
# Supported: Proxmox VE 8.0.x – 8.9.x and 9.0–9.x
5151
pve_check() {
5252
local PVE_VER
5353
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
@@ -63,20 +63,14 @@ pve_check() {
6363
return 0
6464
fi
6565

66-
# Check for Proxmox VE 9.x: allow 9.0–9.1.x
66+
# Check for Proxmox VE 9.x: allow 9.0–9.x
6767
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
68-
local MINOR="${BASH_REMATCH[1]}"
69-
if ((MINOR < 0 || MINOR > 1)); then
70-
msg_error "This version of Proxmox VE is not yet supported."
71-
msg_error "Supported: Proxmox VE version 9.0–9.1.x"
72-
exit 105
73-
fi
7468
return 0
7569
fi
7670

7771
# All other unsupported versions
7872
msg_error "This version of Proxmox VE is not supported."
79-
msg_error "Supported versions: Proxmox VE 8.0 – 8.9 or 9.0–9.1.x"
73+
msg_error "Supported versions: Proxmox VE 8.0 – 8.9 or 9.0–9.x"
8074
exit 105
8175
}
8276

0 commit comments

Comments
 (0)