From 2c5da2e770c94e1a62705d023e90c13ce6ea8301 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 28 Jun 2023 16:41:46 -0400 Subject: [PATCH] Update build.func tweak --- misc/build.func | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/misc/build.func b/misc/build.func index e8478a7f..fced35ed 100644 --- a/misc/build.func +++ b/misc/build.func @@ -54,6 +54,9 @@ msg_error() { # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported. pve_check() { + 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. \n Default distribution for $APP LXC is ${var_os} ${var_version}" 10 58 + fi 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 "Requires PVE Version 7.0 or higher" @@ -437,10 +440,6 @@ 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. \n Default distribution for $APP LXC is ${var_os} ${var_version}" 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