nixos/kresd: fix CacheDirectory permissions as per tmpfiles
This commit is contained in:
parent
ed89d043dc
commit
1a6240bde4
@ -129,9 +129,9 @@ in {
|
|||||||
systemd.services."kresd@".serviceConfig = {
|
systemd.services."kresd@".serviceConfig = {
|
||||||
ExecStart = "${package}/bin/kresd --noninteractive "
|
ExecStart = "${package}/bin/kresd --noninteractive "
|
||||||
+ "-c ${package}/lib/knot-resolver/distro-preconfig.lua -c ${configFile}";
|
+ "-c ${package}/lib/knot-resolver/distro-preconfig.lua -c ${configFile}";
|
||||||
# Ensure correct ownership in case UID or GID changes.
|
# Ensure /var/cache/knot-resolver exists
|
||||||
CacheDirectory = "knot-resolver";
|
CacheDirectory = "knot-resolver";
|
||||||
CacheDirectoryMode = "0750";
|
CacheDirectoryMode = "0770";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Try cleaning up the previously default location of cache file.
|
# Try cleaning up the previously default location of cache file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user