Update build.func
Prepare for Proxmox Virtual Environment 8
This commit is contained in:
parent
db398c3e62
commit
8af136338a
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ msg_error() {
|
||||||
|
|
||||||
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
|
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
|
||||||
pve_check() {
|
pve_check() {
|
||||||
if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then
|
if ! pveversion | grep -Eq "pve-manager/(7\.[0-9]|8\.[0-9])"; then
|
||||||
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported"
|
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported"
|
||||||
echo -e "Requires PVE Version 7.0 or higher"
|
echo -e "Requires PVE Version 7.0 or higher"
|
||||||
echo -e "Exiting..."
|
echo -e "Exiting..."
|
||||||
|
|
Loading…
Reference in a new issue