From: Marcel van der Veldt Date: Fri, 30 Aug 2024 11:33:00 +0000 (+0200) Subject: fix mount command for real X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=0acae56f4261073eb84b13a91743a2ee1a83b6be;p=music-assistant-server.git fix mount command for real --- diff --git a/music_assistant/server/providers/filesystem_smb/__init__.py b/music_assistant/server/providers/filesystem_smb/__init__.py index d924130f..98379e3c 100644 --- a/music_assistant/server/providers/filesystem_smb/__init__.py +++ b/music_assistant/server/providers/filesystem_smb/__init__.py @@ -182,14 +182,11 @@ class SMBFileSystemProvider(LocalFileSystemProvider): ] elif platform.system() == "Linux": - options = ["rw"] + options = ["rw", f'username="{username}"'] if mount_options := str(self.config.get_value(CONF_MOUNT_OPTIONS)): options += mount_options.split(",") - - options += ["username", f'"{username}"'] if password: - options += ["password", f'"{password}"'] - + options.append(f'password="{password}"') options_str = ",".join(options) mount_cmd = [ "mount",