mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
nixos: Use volume/global chmod-d for module directory creation
This commit is contained in:
parent
e9ab040ce8
commit
1e05500e9b
|
|
@ -364,7 +364,17 @@ in
|
||||||
#: in front of things means it wont change it if the directory already exists.
|
#: in front of things means it wont change it if the directory already exists.
|
||||||
group = ":${cfg.group}";
|
group = ":${cfg.group}";
|
||||||
user = ":${cfg.user}";
|
user = ":${cfg.user}";
|
||||||
mode = ":755";
|
mode = ":${
|
||||||
|
# Use volume permissions if set
|
||||||
|
if (value.flags ? chmod_d) then
|
||||||
|
value.flags.chmod_d
|
||||||
|
# Else, use global permission if set
|
||||||
|
else if (cfg.settings ? chmod-d) then
|
||||||
|
cfg.settings.chmod-d
|
||||||
|
# Else, use the default permission
|
||||||
|
else
|
||||||
|
"755"
|
||||||
|
}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
) cfg.volumes
|
) cfg.volumes
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue