File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ root_check() {
6565}
6666
6767# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
68- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
68+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
6969pve_check() {
7070 local PVE_VER
7171 PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
@@ -81,20 +81,20 @@ pve_check() {
8181 return 0
8282 fi
8383
84- # Check for Proxmox VE 9.x: allow ONLY 9.0
84+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
8585 if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
8686 local MINOR="${BASH_REMATCH[1]}"
87- if (( MINOR != 0 )) ; then
88- msg_error " This version of Proxmox VE is not yet supported."
89- msg_error " Supported: Proxmox VE version 9.0"
87+ if ((MINOR < 0 || MINOR > 1 )); then
88+ msg_error "This version of Proxmox VE is not supported."
89+ msg_error "Supported: Proxmox VE version 9.0 – 9.1 "
9090 exit 1
9191 fi
9292 return 0
9393 fi
9494
9595 # All other unsupported versions
9696 msg_error "This version of Proxmox VE is not supported."
97- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
97+ msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
9898 exit 1
9999}
100100
Original file line number Diff line number Diff line change @@ -200,7 +200,6 @@ if qm status "$CTID" &>/dev/null || pct status "$CTID" &>/dev/null; then
200200fi
201201
202202# This checks for the presence of valid Container Storage and Template Storage locations
203- msg_info " Validating storage"
204203if ! check_storage_support " rootdir" ; then
205204 msg_error " No valid storage found for 'rootdir' [Container]"
206205 exit 1
@@ -210,7 +209,6 @@ if ! check_storage_support "vztmpl"; then
210209 exit 1
211210fi
212211
213- # msg_info "Checking template storage"
214212while true ; do
215213 if select_storage template; then
216214 TEMPLATE_STORAGE=" $STORAGE_RESULT "
You can’t perform that action at this time.
0 commit comments