mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-27 20:06:52 +00:00
Update mount_disk_host_bk.sh
This commit is contained in:
parent
f5ae187012
commit
b443f278da
@ -391,7 +391,7 @@ fi
|
||||
# ------------------- Mount point and permissions (modular, non-blocking) -------------------
|
||||
|
||||
|
||||
# Pedir al usuario (puedes añadir translate aquí si quieres)
|
||||
|
||||
MOUNT_POINT=$(dialog --clear --title "$(translate "Mount Point")" \
|
||||
--inputbox "$(translate "Enter the mount point for the disk (e.g., /mnt/backup):")" \
|
||||
10 60 "$DEFAULT_MOUNT" 2>&1 >/dev/tty)
|
||||
@ -422,7 +422,7 @@ fi
|
||||
chown root:sharedfiles "$MOUNT_POINT"
|
||||
chmod 2775 "$MOUNT_POINT"
|
||||
echo "$MOUNT_POINT" > /usr/local/share/proxmenux/last_backup_mount.txt
|
||||
# ¡IMPORTANTE! Devolver SOLO el path si todo ha ido bien
|
||||
|
||||
MOUNT_POINT=$(echo "$MOUNT_POINT" | head -n1 | tr -d '\r\n\t ')
|
||||
echo "$MOUNT_POINT"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user