Update build.func

Requires PVE Version 7.4-13 or higher
pull/2460/head
tteckster 2024-02-06 05:29:14 -05:00 committed by GitHub
parent 65970a5c53
commit a1deedd066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -88,9 +88,9 @@ pve_check() {
if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then 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 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 fi
if ! pveversion | grep -Eq "pve-manager/(7\.[0-9]|8\.[0-9])"; then if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" msg_error "This version of Proxmox Virtual Environment is not supported"
echo -e "Requires PVE Version 7.0 or higher" echo -e "Requires PVE Version 7.4-13 or higher"
echo -e "Exiting..." echo -e "Exiting..."
sleep 2 sleep 2
exit exit