From 3579f2258e505453967f14e0a0dc7946e9681c9f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:57:55 +0100 Subject: [PATCH] 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. --- scripts/core/build.func | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/core/build.func b/scripts/core/build.func index 6cad4d4..85cf73c 100755 --- a/scripts/core/build.func +++ b/scripts/core/build.func @@ -60,7 +60,7 @@ root_check() { } # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported. -# Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+) +# Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1 pve_check() { local PVE_VER PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')" @@ -76,12 +76,12 @@ pve_check() { return 0 fi - # Check for Proxmox VE 9.x: allow ONLY 9.0 + # Check for Proxmox VE 9.x: allow 9.0 and 9.1 if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then local MINOR="${BASH_REMATCH[1]}" - if ((MINOR != 0)); then - msg_error "This version of Proxmox VE is not yet supported." - msg_error "Supported: Proxmox VE version 9.0" + if ((MINOR < 0 || MINOR > 1)); then + msg_error "This version of Proxmox VE is not supported." + msg_error "Supported: Proxmox VE version 9.0 – 9.1" exit 1 fi return 0 @@ -89,7 +89,7 @@ pve_check() { # All other unsupported versions msg_error "This version of Proxmox VE is not supported." - msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0" + msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1" exit 1 }