samba: BindPaths separately
This commit is contained in:
parent
ef378cb921
commit
78c58273be
@ -61,7 +61,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
public = defaults // {
|
public = defaults // {
|
||||||
"path" = cfg.dataDir;
|
#"path" = cfg.dataDir;
|
||||||
|
"path" = "/var/run/samba/dataDir";
|
||||||
"writeable" = "yes";
|
"writeable" = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"create mask" = "0664";
|
"create mask" = "0664";
|
||||||
@ -95,6 +96,9 @@ in
|
|||||||
|
|
||||||
systemd.services.samba-smbd = {
|
systemd.services.samba-smbd = {
|
||||||
unitConfig.Requires = cfg.requires;
|
unitConfig.Requires = cfg.requires;
|
||||||
|
serviceConfig.BindPaths = [
|
||||||
|
"${cfg.dataDir}:/var/run/samba/dataDir"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
mj.services.friendlyport.ports = [
|
mj.services.friendlyport.ports = [
|
||||||
|
Loading…
Reference in New Issue
Block a user