diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-04-13 12:26:45 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-04-13 12:28:19 +0200 |
commit | 5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc (patch) | |
tree | da8b98f3bc22b6eba419cdead677864cfbd7b88d /nixos | |
parent | 9223fde9f39c279e7f9a099b253f2a78625ef95b (diff) |
fcron: do not chmod at all
fcron does handle permissions on its own correctly
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/scheduling/fcron.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/services/scheduling/fcron.nix b/nixos/modules/services/scheduling/fcron.nix index bd1ecb40969b..bc631bdd0447 100644 --- a/nixos/modules/services/scheduling/fcron.nix +++ b/nixos/modules/services/scheduling/fcron.nix @@ -143,10 +143,12 @@ in }; preStart = '' - ${pkgs.coreutils}/bin/mkdir -m 0770 -p /var/spool/fcron - ${pkgs.coreutils}/bin/chown -R fcron:fcron /var/spool/fcron + install \ + --mode 0770 \ + --owner fcron \ + --group fcron \ + --directory /var/spool/fcron # load system crontab file - set -x #${pkgs.fcron}/bin/fcrontab -u systab ${pkgs.writeText "systab" cfg.systab} ''; |