the full path is now saved in samba shares

This commit is contained in:
Daniel 2019-11-27 16:03:30 +01:00
parent ccb51aab8e
commit 42da594162

View file

@ -39,7 +39,7 @@ def create_share(name, path, user, dir_mask, create_mask, writeable, btrfs, recy
:return: Nothing :return: Nothing
:rtype: None :rtype: None
""" """
path = Pool.query.get(int(path)) path = Pool.query.get(int(path)).mountpoint + "/{}".format(name)
share = SambaShare(name, path, btrfs=btrfs, recycle=recycling) share = SambaShare(name, path, btrfs=btrfs, recycle=recycling)
user = SambaOption("valid users", user) user = SambaOption("valid users", user)
if dir_mask is None: if dir_mask is None: