Update mount-disk-on-host.sh

This commit is contained in:
MacRimi 2025-04-12 12:39:40 +02:00
parent d4f2d93264
commit aa70fc9ac8

View File

@ -331,8 +331,16 @@ mount "$MOUNT_POINT" 2> >(grep -v "systemd still uses")
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
chown root:root "$MOUNT_POINT" if ! getent group sharedfiles >/dev/null; then
chmod 775 "$MOUNT_POINT" groupadd sharedfiles
msg_ok "$(translate "Group 'sharedfiles' created")"
else
msg_ok "$(translate "Group 'sharedfiles' already exists")"
fi
chown root:sharedfiles "$MOUNT_POINT"
chmod 2775 "$MOUNT_POINT"
whiptail --title "$(translate "Success")" --msgbox "$(translate "The disk has been successfully mounted at") $MOUNT_POINT" 8 60 whiptail --title "$(translate "Success")" --msgbox "$(translate "The disk has been successfully mounted at") $MOUNT_POINT" 8 60
msg_ok "$(translate "Disk mounted at") $MOUNT_POINT" msg_ok "$(translate "Disk mounted at") $MOUNT_POINT"
msg_success "$(translate "Press Enter to return to menu...")" msg_success "$(translate "Press Enter to return to menu...")"