File tree Expand file tree Collapse file tree 15 files changed +90
-90
lines changed
Expand file tree Collapse file tree 15 files changed +90
-90
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function check_root() {
139139}
140140
141141# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
142- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
142+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
143143pve_check () {
144144 local PVE_VER
145145 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -155,20 +155,20 @@ pve_check() {
155155 return 0
156156 fi
157157
158- # Check for Proxmox VE 9.x: allow ONLY 9.0
158+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
159159 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
160160 local MINOR=" ${BASH_REMATCH[1]} "
161- if (( MINOR != 0 )) ; then
162- msg_error " This version of Proxmox VE is not yet supported."
163- msg_error " Supported: Proxmox VE version 9.0"
161+ if (( MINOR < 0 || MINOR > 1 )) ; then
162+ msg_error " This version of Proxmox VE is not supported."
163+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
164164 exit 1
165165 fi
166166 return 0
167167 fi
168168
169169 # All other unsupported versions
170170 msg_error " This version of Proxmox VE is not supported."
171- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
171+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
172172 exit 1
173173}
174174
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function check_root() {
139139}
140140
141141# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
142- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
142+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
143143pve_check () {
144144 local PVE_VER
145145 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -155,20 +155,20 @@ pve_check() {
155155 return 0
156156 fi
157157
158- # Check for Proxmox VE 9.x: allow ONLY 9.0
158+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
159159 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
160160 local MINOR=" ${BASH_REMATCH[1]} "
161- if (( MINOR != 0 )) ; then
162- msg_error " This version of Proxmox VE is not yet supported."
163- msg_error " Supported: Proxmox VE version 9.0"
161+ if (( MINOR < 0 || MINOR > 1 )) ; then
162+ msg_error " This version of Proxmox VE is not supported."
163+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
164164 exit 1
165165 fi
166166 return 0
167167 fi
168168
169169 # All other unsupported versions
170170 msg_error " This version of Proxmox VE is not supported."
171- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
171+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
172172 exit 1
173173}
174174
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function check_root() {
139139}
140140
141141# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
142- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
142+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
143143pve_check () {
144144 local PVE_VER
145145 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -155,20 +155,20 @@ pve_check() {
155155 return 0
156156 fi
157157
158- # Check for Proxmox VE 9.x: allow ONLY 9.0
158+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
159159 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
160160 local MINOR=" ${BASH_REMATCH[1]} "
161- if (( MINOR != 0 )) ; then
162- msg_error " This version of Proxmox VE is not yet supported."
163- msg_error " Supported: Proxmox VE version 9.0"
161+ if (( MINOR < 0 || MINOR > 1 )) ; then
162+ msg_error " This version of Proxmox VE is not supported."
163+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
164164 exit 1
165165 fi
166166 return 0
167167 fi
168168
169169 # All other unsupported versions
170170 msg_error " This version of Proxmox VE is not supported."
171- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
171+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
172172 exit 1
173173}
174174
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function check_root() {
140140}
141141
142142# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
143- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
143+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
144144pve_check () {
145145 local PVE_VER
146146 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -156,20 +156,20 @@ pve_check() {
156156 return 0
157157 fi
158158
159- # Check for Proxmox VE 9.x: allow ONLY 9.0
159+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
160160 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
161161 local MINOR=" ${BASH_REMATCH[1]} "
162- if (( MINOR != 0 )) ; then
163- msg_error " This version of Proxmox VE is not yet supported."
164- msg_error " Supported: Proxmox VE version 9.0"
162+ if (( MINOR < 0 || MINOR > 1 )) ; then
163+ msg_error " This version of Proxmox VE is not supported."
164+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
165165 exit 1
166166 fi
167167 return 0
168168 fi
169169
170170 # All other unsupported versions
171171 msg_error " This version of Proxmox VE is not supported."
172- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
172+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
173173 exit 1
174174}
175175
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ function check_root() {
143143}
144144
145145# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
146- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
146+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
147147pve_check () {
148148 local PVE_VER
149149 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -159,20 +159,20 @@ pve_check() {
159159 return 0
160160 fi
161161
162- # Check for Proxmox VE 9.x: allow ONLY 9.0
162+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
163163 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
164164 local MINOR=" ${BASH_REMATCH[1]} "
165- if (( MINOR != 0 )) ; then
166- msg_error " This version of Proxmox VE is not yet supported."
167- msg_error " Supported: Proxmox VE version 9.0"
165+ if (( MINOR < 0 || MINOR > 1 )) ; then
166+ msg_error " This version of Proxmox VE is not supported."
167+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
168168 exit 1
169169 fi
170170 return 0
171171 fi
172172
173173 # All other unsupported versions
174174 msg_error " This version of Proxmox VE is not supported."
175- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
175+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
176176 exit 1
177177}
178178
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function check_root() {
140140}
141141
142142# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
143- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
143+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
144144pve_check () {
145145 local PVE_VER
146146 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -156,20 +156,20 @@ pve_check() {
156156 return 0
157157 fi
158158
159- # Check for Proxmox VE 9.x: allow ONLY 9.0
159+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
160160 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
161161 local MINOR=" ${BASH_REMATCH[1]} "
162- if (( MINOR != 0 )) ; then
163- msg_error " This version of Proxmox VE is not yet supported."
164- msg_error " Supported: Proxmox VE version 9.0"
162+ if (( MINOR < 0 || MINOR > 1 )) ; then
163+ msg_error " This version of Proxmox VE is not supported."
164+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
165165 exit 1
166166 fi
167167 return 0
168168 fi
169169
170170 # All other unsupported versions
171171 msg_error " This version of Proxmox VE is not supported."
172- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
172+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
173173 exit 1
174174}
175175
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function check_root() {
139139}
140140
141141# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
142- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
142+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
143143pve_check () {
144144 local PVE_VER
145145 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -155,20 +155,20 @@ pve_check() {
155155 return 0
156156 fi
157157
158- # Check for Proxmox VE 9.x: allow ONLY 9.0
158+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
159159 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
160160 local MINOR=" ${BASH_REMATCH[1]} "
161- if (( MINOR != 0 )) ; then
162- msg_error " This version of Proxmox VE is not yet supported."
163- msg_error " Supported: Proxmox VE version 9.0"
161+ if (( MINOR < 0 || MINOR > 1 )) ; then
162+ msg_error " This version of Proxmox VE is not supported."
163+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
164164 exit 1
165165 fi
166166 return 0
167167 fi
168168
169169 # All other unsupported versions
170170 msg_error " This version of Proxmox VE is not supported."
171- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
171+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
172172 exit 1
173173}
174174
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ function msg_error() {
206206}
207207
208208# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
209- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
209+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
210210pve_check () {
211211 local PVE_VER
212212 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -222,20 +222,20 @@ pve_check() {
222222 return 0
223223 fi
224224
225- # Check for Proxmox VE 9.x: allow ONLY 9.0
225+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
226226 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
227227 local MINOR=" ${BASH_REMATCH[1]} "
228- if (( MINOR != 0 )) ; then
229- msg_error " This version of Proxmox VE is not yet supported."
230- msg_error " Supported: Proxmox VE version 9.0"
228+ if (( MINOR < 0 || MINOR > 1 )) ; then
229+ msg_error " This version of Proxmox VE is not supported."
230+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
231231 exit 1
232232 fi
233233 return 0
234234 fi
235235
236236 # All other unsupported versions
237237 msg_error " This version of Proxmox VE is not supported."
238- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
238+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
239239 exit 1
240240}
241241
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ function msg_error() {
181181}
182182
183183# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
184- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
184+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
185185pve_check () {
186186 local PVE_VER
187187 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -197,20 +197,20 @@ pve_check() {
197197 return 0
198198 fi
199199
200- # Check for Proxmox VE 9.x: allow ONLY 9.0
200+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
201201 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
202202 local MINOR=" ${BASH_REMATCH[1]} "
203- if (( MINOR != 0 )) ; then
204- msg_error " This version of Proxmox VE is not yet supported."
205- msg_error " Supported: Proxmox VE version 9.0"
203+ if (( MINOR < 0 || MINOR > 1 )) ; then
204+ msg_error " This version of Proxmox VE is not supported."
205+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
206206 exit 1
207207 fi
208208 return 0
209209 fi
210210
211211 # All other unsupported versions
212212 msg_error " This version of Proxmox VE is not supported."
213- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
213+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
214214 exit 1
215215}
216216
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function check_root() {
140140}
141141
142142# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
143- # Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
143+ # Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
144144pve_check () {
145145 local PVE_VER
146146 PVE_VER=" $( pveversion | awk -F' /' ' {print $2}' | awk -F' -' ' {print $1}' ) "
@@ -156,20 +156,20 @@ pve_check() {
156156 return 0
157157 fi
158158
159- # Check for Proxmox VE 9.x: allow ONLY 9.0
159+ # Check for Proxmox VE 9.x: allow 9.0 and 9.1
160160 if [[ " $PVE_VER " =~ ^9\. ([0-9]+) ]]; then
161161 local MINOR=" ${BASH_REMATCH[1]} "
162- if (( MINOR != 0 )) ; then
163- msg_error " This version of Proxmox VE is not yet supported."
164- msg_error " Supported: Proxmox VE version 9.0"
162+ if (( MINOR < 0 || MINOR > 1 )) ; then
163+ msg_error " This version of Proxmox VE is not supported."
164+ msg_error " Supported: Proxmox VE version 9.0 – 9.1 "
165165 exit 1
166166 fi
167167 return 0
168168 fi
169169
170170 # All other unsupported versions
171171 msg_error " This version of Proxmox VE is not supported."
172- msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
172+ msg_error " Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1 "
173173 exit 1
174174}
175175
You can’t perform that action at this time.
0 commit comments