Skip to content

Commit 3579f22

Browse files
authored
Update supported Proxmox VE versions to include 9.1 (#335)
The pve_check function now allows Proxmox VE 9.1 in addition to 9.0 and 8.x. Error messages and comments have been updated to reflect the expanded support.
1 parent 5b861ad commit 3579f22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/core/build.func

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ root_check() {
6060
}
6161

6262
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
63-
# Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
63+
# Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
6464
pve_check() {
6565
local PVE_VER
6666
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
@@ -76,20 +76,20 @@ pve_check() {
7676
return 0
7777
fi
7878

79-
# Check for Proxmox VE 9.x: allow ONLY 9.0
79+
# Check for Proxmox VE 9.x: allow 9.0 and 9.1
8080
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
8181
local MINOR="${BASH_REMATCH[1]}"
82-
if ((MINOR != 0)); then
83-
msg_error "This version of Proxmox VE is not yet supported."
84-
msg_error "Supported: Proxmox VE version 9.0"
82+
if ((MINOR < 0 || MINOR > 1)); then
83+
msg_error "This version of Proxmox VE is not supported."
84+
msg_error "Supported: Proxmox VE version 9.0 – 9.1"
8585
exit 1
8686
fi
8787
return 0
8888
fi
8989

9090
# All other unsupported versions
9191
msg_error "This version of Proxmox VE is not supported."
92-
msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
92+
msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1"
9393
exit 1
9494
}
9595

0 commit comments

Comments
 (0)