mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos/munin: move munin-cron to systemd.tmpfiles
to match with munin-node.
This commit is contained in:
parent
3338985aab
commit
43f94ff5a9
1 changed files with 6 additions and 4 deletions
|
@ -215,9 +215,11 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
system.activationScripts.munin-cron = stringAfter [ "users" "groups" ] ''
|
||||
mkdir -p /var/{run,log,www,lib}/munin
|
||||
chown -R munin:munin /var/{run,log,www,lib}/munin
|
||||
'';
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/run/munin 0755 munin munin -"
|
||||
"d /var/log/munin 0755 munin munin -"
|
||||
"d /var/www/munin 0755 munin munin -"
|
||||
"d /var/lib/munin 0755 munin munin -"
|
||||
];
|
||||
})];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue