From 5d40a203e6953d46c6d5724cafa6b451bec60bd0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 6 Oct 2023 23:53:18 -0400 Subject: [PATCH] Update turnkey.sh change whiptail variables --- turnkey/turnkey.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/turnkey/turnkey.sh b/turnkey/turnkey.sh index 292930f6..a77573b5 100644 --- a/turnkey/turnkey.sh +++ b/turnkey/turnkey.sh @@ -57,12 +57,12 @@ if systemctl is-active -q ping-instances.service; then fi header_info whiptail --backtitle "Proxmox VE Helper Scripts" --title "TurnKey LXCs" --yesno "This will allow for the creation of one of the many TurnKey LXC Containers. Proceed?" 10 68 || exit -CTID_MENU=() +TURNKEY_MENU=() MSG_MAX_LENGTH=0 while read -r TAG ITEM; do OFFSET=2 ((${#ITEM} + OFFSET > MSG_MAX_LENGTH)) && MSG_MAX_LENGTH=${#ITEM}+OFFSET - CTID_MENU+=("$TAG" "$ITEM " "OFF") + TURNKEY_MENU+=("$TAG" "$ITEM " "OFF") done < <( cat <&1 1>&2 2>&3 | tr -d '"') || exit +turnkey=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "TurnKey LXCs" --radiolist "\nSelect a TurnKey LXC to create:\n" 16 $((MSG_MAX_LENGTH + 58)) 6 "${TURNKEY_MENU[@]}" 3>&1 1>&2 2>&3 | tr -d '"') || exit [ -z "$turnkey" ] && { whiptail --backtitle "Proxmox VE Helper Scripts" --title "No TurnKey LXC Selected" --msgbox "It appears that no TurnKey LXC container was selected" 10 68 msg "Done"