TEMPLATE_STORAGE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Enter storage location for the template (e.g., local)"858local --title "TEMPLATE STORAGE" 3>&1 1>&2 2>&3)
if[ -n "$TEMPLATE_STORAGE"];then
break
else
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Storage location cannot be empty. Please try again."858
fi
done
# Ask for storage location for CT disk
# Ask for storage location for CT disk
while true;do
DISK_STORAGE=$(select_storage "container")
DISK_STORAGE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Enter storage location for the CT disk (e.g., local-lvm)"858 local-lvm --title "CT DISK STORAGE" 3>&1 1>&2 2>&3)
if[ -n "$DISK_STORAGE"];then
break
else
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Storage location cannot be empty. Please try again."858
fi
done
echo_default
echo_default
}
}
@ -124,9 +153,10 @@ function advanced_settings() {
@ -135,8 +165,10 @@ function advanced_settings() {
fi
fi
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Invalid domain format. Please use a fully qualified domain name (e.g., example.com, sub.example.com)."858
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Invalid domain format. Please use a fully qualified domain name (e.g., example.com, sub.example.com)."858
done
done
DISK_SIZE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Disk Size in GB"858$var_disk --title "DISK SIZE" 3>&1 1>&2 2>&3)
DISK_SIZE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Disk Size in GB"858$var_disk --title "DISK SIZE" 3>&1 1>&2 2>&3)
CORE_COUNT=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Allocate CPU Cores"858$var_cpu --title "CORE COUNT" 3>&1 1>&2 2>&3)
CORE_COUNT=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Allocate CPU Cores"858$var_cpu --title "CORE COUNT" 3>&1 1>&2 2>&3)
while true;do
while true;do
RAM_SIZE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Allocate RAM in MiB (minimum 1537)"858$var_ram --title "RAM" 3>&1 1>&2 2>&3)
RAM_SIZE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Allocate RAM in MiB (minimum 1537)"858$var_ram --title "RAM" 3>&1 1>&2 2>&3)
@ -186,24 +218,11 @@ function advanced_settings() {
fi
fi
# Ask for storage location for template
# Ask for storage location for template
while true;do
TEMPLATE_STORAGE=$(select_storage "template")
TEMPLATE_STORAGE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Enter storage location for the template (e.g., local)"858local --title "TEMPLATE STORAGE" 3>&1 1>&2 2>&3)
if[ -n "$TEMPLATE_STORAGE"];then
break
else
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Storage location cannot be empty. Please try again."858
fi
done
# Ask for storage location for CT disk
# Ask for storage location for CT disk
while true;do
DISK_STORAGE=$(select_storage "container")
DISK_STORAGE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Enter storage location for the CT disk (e.g., local-lvm)"858 local-lvm --title "CT DISK STORAGE" 3>&1 1>&2 2>&3)
if[ -n "$DISK_STORAGE"];then
break
else
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Storage location cannot be empty. Please try again."858
fi
done
if(whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?"10 58);then
if(whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?"10 58);then
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"