Skip to content

Commit 20266fa

Browse files
committed
Expand support to Proxmox VE 9.1 in VM scripts
Update all VM provisioning scripts to support Proxmox VE 9.1 in addition to 8.0.x–8.9.x and 9.0. Adjust version checks and error messages to reflect the expanded compatibility.
1 parent 8ad68e7 commit 20266fa

15 files changed

+90
-90
lines changed

vm/archlinux-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
143143
pve_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

vm/debian-13-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
143143
pve_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

vm/debian-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
143143
pve_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

vm/docker-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
144144
pve_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

vm/haos-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
147147
pve_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

vm/mikrotik-routeros.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
144144
pve_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

vm/nextcloud-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
143143
pve_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

vm/openwrt-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
210210
pve_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

vm/opnsense-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
185185
pve_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

vm/owncloud-vm.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
144144
pve_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

0 commit comments

Comments
 (0)