Update remaining pve_check functions to support Proxmox 9.0 and 9.1

This commit is contained in:
CanbiZ
2025-11-19 16:42:59 +01:00
parent 9e22bee07e
commit b7430c20fe
16 changed files with 4044 additions and 4044 deletions

View File

@@ -51,29 +51,29 @@ 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" =~ ^9\.([0-9]+)(\.[0-9]+)?$ ]]; then
if [[ "$PVE_VER" =~ ^8\.([0-9]+)(\.[0-9]+)?$ ]]; then
local MINOR="${BASH_REMATCH[1]}"
if ((MINOR != 0)); then
if ((MINOR < 0 || MINOR > 9)); then
msg_error "Unsupported Proxmox VE version: $PVE_VER"
msg_error "Supported versions: 8.0 8.9 or 9.0.x"
msg_error "Supported versions: 8.0 8.9 or 9.0 9.1"
exit 1
fi
return 0
fi
# Proxmox VE 9.x: allow only 9.0
# Proxmox VE 9.x: allow 9.0 9.1
if [[ "$PVE_VER" =~ ^9\.([0-9]+)$ ]]; then
local MINOR="${BASH_REMATCH[1]}"
if ((MINOR != 0)); then
if ((MINOR < 0 || MINOR > 1)); 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 9.1"
exit 1
fi
return 0
fi
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 9.1"
exit 1
}