From 93f791e59246c6805abaaf08747ab7afe94335d8 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 24 Apr 2024 09:43:00 -0400 Subject: [PATCH] Add PVE 8.2 to `pve_check()` --- misc/build.func | 2 +- vm/debian-vm.sh | 2 +- vm/haos-vm.sh | 2 +- vm/nextcloud-vm.sh | 2 +- vm/openwrt.sh | 2 +- vm/owncloud-vm.sh | 2 +- vm/ubuntu-vm.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/misc/build.func b/misc/build.func index d23bc2a2..8d09d8fa 100644 --- a/misc/build.func +++ b/misc/build.func @@ -98,7 +98,7 @@ pve_check() { if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Proxmox VE 7 Detected" "You are currently using Proxmox VE 7 (EOL 2024-07), refrain from creating Debian 12 LXCs. \nDefault distribution for $APP LXC is ${var_os} ${var_version}" 10 60 fi - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[0-2])"; then + if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then msg_error "This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." echo -e "Exiting..." diff --git a/vm/debian-vm.sh b/vm/debian-vm.sh index 3f2db4f6..6a20b717 100644 --- a/vm/debian-vm.sh +++ b/vm/debian-vm.sh @@ -92,7 +92,7 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then + if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then msg_error "This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." echo -e "Exiting..." diff --git a/vm/haos-vm.sh b/vm/haos-vm.sh index ceb9f0d8..4c82712a 100644 --- a/vm/haos-vm.sh +++ b/vm/haos-vm.sh @@ -115,7 +115,7 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then + if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then msg_error "This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." echo -e "Exiting..." diff --git a/vm/nextcloud-vm.sh b/vm/nextcloud-vm.sh index ff62c7df..23cc5606 100644 --- a/vm/nextcloud-vm.sh +++ b/vm/nextcloud-vm.sh @@ -91,7 +91,7 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then + if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then msg_error "This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." echo -e "Exiting..." diff --git a/vm/openwrt.sh b/vm/openwrt.sh index 5ebb5ec4..0afca1cb 100644 --- a/vm/openwrt.sh +++ b/vm/openwrt.sh @@ -157,7 +157,7 @@ function msg_error() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then + if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." echo -e "Exiting..." diff --git a/vm/owncloud-vm.sh b/vm/owncloud-vm.sh index 7fbe8be6..006a4649 100644 --- a/vm/owncloud-vm.sh +++ b/vm/owncloud-vm.sh @@ -91,7 +91,7 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then + if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then msg_error "This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." echo -e "Exiting..." diff --git a/vm/ubuntu-vm.sh b/vm/ubuntu-vm.sh index be9edc88..5fffcf0d 100644 --- a/vm/ubuntu-vm.sh +++ b/vm/ubuntu-vm.sh @@ -92,7 +92,7 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then + if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then msg_error "This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." echo -e "Exiting..."