Skip to content

Commit fe3dab0

Browse files
authored
tools/pve: expand PVE support to 9.0–9.1 (post-install & netdata) (#9298)
1 parent b314ba4 commit fe3dab0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tools/addon/netdata.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function msg_ok() {
4242
function msg_error() { echo -e "${RD}$1${CL}"; }
4343

4444
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
45-
# Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
45+
# Supported: Proxmox VE 8.0.x – 8.9.x and 9.09.1.x
4646
pve_check() {
4747
local PVE_VER
4848
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
@@ -58,20 +58,20 @@ pve_check() {
5858
return 0
5959
fi
6060

61-
# Check for Proxmox VE 9.x: allow ONLY 9.0
61+
# Check for Proxmox VE 9.x: allow 9.0–9.1.x
6262
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
6363
local MINOR="${BASH_REMATCH[1]}"
64-
if ((MINOR != 0)); then
64+
if ((MINOR < 0 || MINOR > 1)); then
6565
msg_error "This version of Proxmox VE is not yet supported."
66-
msg_error "Supported: Proxmox VE version 9.0"
66+
msg_error "Supported: Proxmox VE version 9.0–9.1.x"
6767
exit 1
6868
fi
6969
return 0
7070
fi
7171

7272
# All other unsupported versions
7373
msg_error "This version of Proxmox VE is not supported."
74-
msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
74+
msg_error "Supported versions: Proxmox VE 8.0 – 8.9 or 9.0–9.1.x"
7575
exit 1
7676
}
7777

tools/pve/post-pve-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ main() {
8888
fi
8989
start_routines_8
9090
elif [[ "$PVE_MAJOR" == "9" ]]; then
91-
if ((PVE_MINOR != 0)); then
92-
msg_error "Only Proxmox 9.0 is currently supported"
91+
if ((PVE_MINOR < 0 || PVE_MINOR > 1)); then
92+
msg_error "Only Proxmox 9.0-9.1.x is currently supported"
9393
exit 1
9494
fi
9595
start_routines_9
9696
else
9797
msg_error "Unsupported Proxmox VE major version: $PVE_MAJOR"
98-
echo -e "Supported: 8.0–8.9.x and 9.0"
98+
echo -e "Supported: 8.0–8.9.x and 9.0–9.1.x"
9999
exit 1
100100
fi
101101
}

0 commit comments

Comments
 (0)