From 7525666f6bfd7467fbc4eb4ddb4bbd6d12985e6e Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Wed, 28 Jun 2023 09:09:49 -0400
Subject: [PATCH] Update build.func

add Proxmox VE 7 warning regarding Debian 12 LXCs
---
 misc/build.func | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/misc/build.func b/misc/build.func
index 9d59ada1..b77cd463 100644
--- a/misc/build.func
+++ b/misc/build.func
@@ -437,6 +437,10 @@ install_script() {
 }
 
 start() {
+    if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then
+    whiptail --msgbox --title "Proxmox VE 7 Detected" "You are currently using Proxmox VE 7, refrain from creating Debian 12 LXCs due to differences in locale parameters." 10 58
+  fi
+
   if command -v pveversion >/dev/null 2>&1; then
     if ! (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
       clear