From a5560a31236cf6ef6cd018b07d8eae0174cb3e1f Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 6 Sep 2025 11:50:48 +0200 Subject: [PATCH] Update share-common.func --- scripts/global/share-common.func | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/global/share-common.func b/scripts/global/share-common.func index 2bcd003..1409858 100644 --- a/scripts/global/share-common.func +++ b/scripts/global/share-common.func @@ -286,7 +286,7 @@ pmx_select_host_mount_point() { select_host_directory() { local method choice result - method=$(dialog --title "$(translate "Select Host Directory")" --menu "$(translate "How do you want to select the HOST folder to mount?")" 15 70 4 \ + method=$(dialog --clear --backtitle "ProxMenux" --title "$(translate "Select Host Directory")" --menu "\n$(translate "How do you want to select the HOST folder to mount?")" 15 70 4 \ "mnt" "$(translate "Select from /mnt directories")" \ "manual" "$(translate "Enter path manually")" 3>&1 1>&2 2>&3) || return 1 @@ -308,10 +308,10 @@ select_host_directory() { fi result=$(dialog --title "$(translate "Select Host Folder")" \ - --menu "$(translate "Select the folder to mount:")" 20 80 10 "${options[@]}" 3>&1 1>&2 2>&3) + --menu "\n$(translate "Select the folder to mount:")" 20 80 10 "${options[@]}" 3>&1 1>&2 2>&3) ;; manual) - result=$(whiptail --title "$(translate "Enter Path")" \ + result=$(dialog --title "$(translate "Enter Path")" \ --inputbox "$(translate "Enter the full path to the host folder:")" 10 70 "/mnt/" 3>&1 1>&2 2>&3) ;; esac @@ -372,7 +372,7 @@ select_container_mount_point() { local choice mount_point existing_dirs options while true; do - choice=$(dialog --title "$(translate "Configure Mount Point inside LXC")" \ + choice=$(dialog --backtitle "ProxMenux" --title "$(translate "Configure Mount Point inside LXC")" \ --menu "\n$(translate "Where to mount inside container?")" 18 70 5 \ "1" "$(translate "Create new directory in /mnt")" \ "2" "$(translate "Use existing directory in /mnt")" \ @@ -381,7 +381,7 @@ select_container_mount_point() { case "$choice" in 1) - mount_point=$(dialog --inputbox "$(translate "Enter folder name for /mnt:")" 10 60 "shared" 3>&1 1>&2 2>&3) || continue + mount_point=$(dialog --inputbox "\n$(translate "Enter folder name for /mnt in LXC:")" 10 60 "shared" 3>&1 1>&2 2>&3) || continue [[ -z "$mount_point" ]] && continue mount_point="/mnt/$mount_point" pct exec "$ctid" -- mkdir -p "$mount_point" 2>/dev/null @@ -397,11 +397,11 @@ select_container_mount_point() { name=$(basename "$dir") options+=("$dir" "$name") done <<< "$existing_dirs" - mount_point=$(dialog --title "$(translate "Select Existing Folder")" \ - --menu "$(translate "Choose a folder from /mnt:")" 20 70 10 "${options[@]}" 3>&1 1>&2 2>&3) || continue + mount_point=$(dialog --title "$(translate "Select Existing Folder in LXC")" \ + --menu "\n$(translate "Choose a folder from /mnt:")" 20 70 10 "${options[@]}" 3>&1 1>&2 2>&3) || continue ;; 3) - mount_point=$(whiptail --inputbox "$(translate "Enter full path:")" 10 70 "/mnt/shared" 3>&1 1>&2 2>&3) || continue + mount_point=$(dialog --inputbox "$(translate "Enter full path:")" 10 70 "/mnt/shared" 3>&1 1>&2 2>&3) || continue [[ -z "$mount_point" ]] && continue pct exec "$ctid" -- mkdir -p "$mount_point" 2>/dev/null ;;