update menus VM

This commit is contained in:
MacRimi 2025-05-07 22:08:37 +02:00
parent 1149ce8ad8
commit fc0fbf6e9c
3 changed files with 13 additions and 13 deletions

View File

@ -78,7 +78,7 @@ function start_vm_configuration() {
while true; do while true; do
OS_TYPE=$(dialog --backtitle "ProxMenux" \ OS_TYPE=$(dialog --backtitle "ProxMenux" \
--title "$(translate "Select System Type")" \ --title "$(translate "Select System Type")" \
--menu "\n$(translate "Choose the type of virtual system to install:")" 18 70 8 \ --menu "\n$(translate "Choose the type of virtual system to install:")" 18 70 10 \
1 "$(translate "Create") VM System NAS" \ 1 "$(translate "Create") VM System NAS" \
2 "$(translate "Create") VM System Windows" \ 2 "$(translate "Create") VM System Windows" \
3 "$(translate "Create") VM System Linux" \ 3 "$(translate "Create") VM System Linux" \

View File

@ -102,18 +102,18 @@ function select_linux_iso_official() {
INDEX=0 INDEX=0
for entry in "${DISTROS[@]}"; do for entry in "${DISTROS[@]}"; do
IFS='|' read -r NAME TYPE SOURCE URL <<< "$entry" IFS='|' read -r NAME TYPE SOURCE URL <<< "$entry"
LINE=$(printf "%-40s │ %-10s │ %s" "$NAME" "$TYPE" "$SOURCE") LINE=$(printf "%-30s │ %-10s │ %s" "$NAME" "$TYPE" "$SOURCE")
MENU_OPTIONS+=("$INDEX" "$LINE") MENU_OPTIONS+=("$INDEX" "$LINE")
URLS[$INDEX]="$entry" URLS[$INDEX]="$entry"
((INDEX++)) ((INDEX++))
done done
HEADER="%-42s │ %-10s │ %s" HEADER="%-42s │ %-10s │ %s"
HEADER_TEXT=$(printf "$HEADER" "Distribution" "Type" "Source") HEADER_TEXT=$(printf "$HEADER" " Distribution" "Type" "Source")
CHOICE=$(dialog --backtitle "ProxMenux" \ CHOICE=$(dialog --backtitle "ProxMenux" \
--title "$(translate "Official Linux Distributions")" \ --title "$(translate "Official Linux Distributions")" \
--menu "$(translate "Select the Linux distribution to install:")\n\n$HEADER_TEXT" 20 90 12 \ --menu "$(translate "Select the Linux distribution to install:")\n\n$HEADER_TEXT" 20 80 12 \
"${MENU_OPTIONS[@]}" \ "${MENU_OPTIONS[@]}" \
3>&1 1>&2 2>&3) 3>&1 1>&2 2>&3)
@ -139,17 +139,17 @@ function select_linux_iso_official() {
function select_linux_cloudinit() { function select_linux_cloudinit() {
local CLOUDINIT_OPTIONS=( local CLOUDINIT_OPTIONS=(
"1" "Arch Linux (Cloud-Init automated) │ Helper Scripts" "1" "Arch Linux (Cloud-Init automated) │ Helper Scripts"
"2" "Debian 12 (Cloud-Init automated) │ Helper Scripts" "2" "Debian 12 (Cloud-Init automated) │ Helper Scripts"
"3" "Ubuntu 22.04 (Cloud-Init automated) │ Helper Scripts" "3" "Ubuntu 22.04 (Cloud-Init automated) │ Helper Scripts"
"4" "Ubuntu 24.04 (Cloud-Init automated) │ Helper Scripts" "4" "Ubuntu 24.04 (Cloud-Init automated) │ Helper Scripts"
"5" "Ubuntu 24.10 (Cloud-Init automated) │ Helper Scripts" "5" "Ubuntu 24.10 (Cloud-Init automated) │ Helper Scripts"
"6" "$(translate "Return to Main Menu")" "6" "$(translate "Return to Main Menu")"
) )
local script_selection local script_selection
script_selection=$(dialog --backtitle "ProxMenux" --title "$(translate "Cloud-Init Automated Installers")" \ script_selection=$(dialog --backtitle "ProxMenux" --title "$(translate "Cloud-Init Automated Installers")" \
--menu "$(translate "Select a pre-configured Linux VM script to execute:")" 20 78 10 \ --menu "\n$(translate "Select a pre-configured Linux VM script to execute:")" 20 78 10 \
"${CLOUDINIT_OPTIONS[@]}" 3>&1 1>&2 2>&3) "${CLOUDINIT_OPTIONS[@]}" 3>&1 1>&2 2>&3)
[[ $? -ne 0 ]] && return [[ $? -ne 0 ]] && return
@ -228,7 +228,7 @@ function select_linux_other_scripts() {
local choice local choice
choice=$(dialog --backtitle "ProxMenux" \ choice=$(dialog --backtitle "ProxMenux" \
--title "$(translate "Other Prebuilt Linux VMs")" \ --title "$(translate "Other Prebuilt Linux VMs")" \
--menu "$(translate "Select one of the ready-to-run Linux VMs:")" 18 78 10 \ --menu "\n$(translate "Select one of the ready-to-run Linux VMs:")" 18 78 10 \
"${OTHER_OPTIONS[@]}" 3>&1 1>&2 2>&3) "${OTHER_OPTIONS[@]}" 3>&1 1>&2 2>&3)
[[ $? -ne 0 ]] && return [[ $? -ne 0 ]] && return

View File

@ -31,7 +31,7 @@ function select_windows_iso() {
--backtitle "ProxMenux" \ --backtitle "ProxMenux" \
--title "Opciones de instalación de Windows" \ --title "Opciones de instalación de Windows" \
--menu "\nSeleccione el tipo de instalación de Windows:\n\n$header" \ --menu "\nSeleccione el tipo de instalación de Windows:\n\n$header" \
20 70 10 \ 18 70 10 \
1 "$(printf '%-34s│ %s' 'Instalar con ISO UUP Dump' 'UUP Dump ISO creator')" \ 1 "$(printf '%-34s│ %s' 'Instalar con ISO UUP Dump' 'UUP Dump ISO creator')" \
2 "$(printf '%-34s│ %s' 'Instalar con ISO personal' 'Almacenamiento local')" \ 2 "$(printf '%-34s│ %s' 'Instalar con ISO personal' 'Almacenamiento local')" \
3 "Volver al menú principal" \ 3 "Volver al menú principal" \
@ -45,7 +45,7 @@ function select_windows_iso() {
--backtitle "ProxMenux" \ --backtitle "ProxMenux" \
--title "$(translate "Windows Installation Options")" \ --title "$(translate "Windows Installation Options")" \
--menu "\n$(translate "Select the type of Windows installation:")\n\n$header" \ --menu "\n$(translate "Select the type of Windows installation:")\n\n$header" \
16 70 10 \ 18 70 10 \
1 "$(printf '%-35s│ %s' "$desc1" "UUP Dump creator")" \ 1 "$(printf '%-35s│ %s' "$desc1" "UUP Dump creator")" \
2 "$(printf '%-35s│ %s' "$desc2" "Local Storage")" \ 2 "$(printf '%-35s│ %s' "$desc2" "Local Storage")" \
3 "$back" \ 3 "$back" \