Update build.func

This commit is contained in:
CanbiZ 2024-12-09 09:39:16 +01:00
parent 03301f12d2
commit 9e90ab1921

View File

@ -587,46 +587,46 @@ install_script() {
NEXTID=$(pvesh get /cluster/nextid) NEXTID=$(pvesh get /cluster/nextid)
timezone=$(cat /etc/timezone) timezone=$(cat /etc/timezone)
header_info header_info
while true; do while true; do
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SETTINGS" --menu "Choose an option:" \ CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SETTINGS" --menu "Choose an option:" \
15 60 4 \ 15 60 4 \
"1" "Yes" \ "1" "Yes" \
"2" "Yes (with verbose)" \ "2" "Yes (with verbose)" \
"3" "Advanced Settings" \ "3" "Advanced Settings" \
"4" "Exit" 3>&1 1>&2 2>&3) "4" "Exit" 3>&1 1>&2 2>&3)
case $CHOICE in case $CHOICE in
1) 1)
header_info header_info
echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings${CL}" echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings${CL}"
VERBOSE="no" VERBOSE="no"
base_settings base_settings
echo_default echo_default
break break
;; ;;
2) 2)
header_info header_info
echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings (Verbose)${CL}" echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings (Verbose)${CL}"
VERBOSE="yes" VERBOSE="yes"
base_settings base_settings
echo_default echo_default
break break
;; ;;
3) 3)
header_info header_info
echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}" echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}"
advanced_settings advanced_settings
break break
;; ;;
4) 4)
echo -e "${CROSS}${RD} Exiting.${CL}" echo -e "${CROSS}${RD} Exiting.${CL}"
exit 0 exit 0
;; ;;
*) *)
echo -e "${CROSS}${RD} Invalid option, please try again.${CL}" echo -e "${CROSS}${RD} Invalid option, please try again.${CL}"
;; ;;
esac esac
done done
check_container_resources() { check_container_resources() {