Update samba_host.sh

This commit is contained in:
MacRimi
2025-09-04 20:28:16 +02:00
parent d3ec71052e
commit aba7109b35

View File

@@ -524,20 +524,20 @@ select_host_mount_point() {
configure_host_mount_options() { configure_host_mount_options() {
MOUNT_TYPE=$(whiptail --title "$(translate "Mount Options")" --menu "$(translate "Select mount configuration:")" 15 70 4 \ MOUNT_TYPE=$(whiptail --title "$(translate "Mount Options")" --menu "$(translate "Select mount configuration:")" 15 70 4 \
"default" "$(translate "Default options")" \ "1" "$(translate "Default options read/write")" \
"readonly" "$(translate "Read-only mount")" \ "2" "$(translate "Read-only mount")" \
"custom" "$(translate "Custom options")" 3>&1 1>&2 2>&3) "3" "$(translate "Custom options")" 3>&1 1>&2 2>&3)
[[ $? -ne 0 ]] && return 1 [[ $? -ne 0 ]] && return 1
case "$MOUNT_TYPE" in case "$MOUNT_TYPE" in
default) 1)
MOUNT_OPTIONS="rw,noperm,file_mode=0664,dir_mode=0775,iocharset=utf8" MOUNT_OPTIONS="rw,noperm,file_mode=0664,dir_mode=0775,iocharset=utf8"
;; ;;
readonly) 2)
MOUNT_OPTIONS="ro,noperm,file_mode=0444,dir_mode=0555,iocharset=utf8" MOUNT_OPTIONS="ro,noperm,file_mode=0444,dir_mode=0555,iocharset=utf8"
;; ;;
custom) 3)
MOUNT_OPTIONS=$(whiptail --inputbox "$(translate "Enter custom mount options:")" 10 70 "rw,file_mode=0664,dir_mode=0775" --title "$(translate "Custom Options")" 3>&1 1>&2 2>&3) MOUNT_OPTIONS=$(whiptail --inputbox "$(translate "Enter custom mount options:")" 10 70 "rw,file_mode=0664,dir_mode=0775" --title "$(translate "Custom Options")" 3>&1 1>&2 2>&3)
[[ $? -ne 0 ]] && return 1 [[ $? -ne 0 ]] && return 1
[[ -z "$MOUNT_OPTIONS" ]] && MOUNT_OPTIONS="rw,noperm,file_mode=0664,dir_mode=0775" [[ -z "$MOUNT_OPTIONS" ]] && MOUNT_OPTIONS="rw,noperm,file_mode=0664,dir_mode=0775"