summary refs log tree commit diff
path: root/nixos/modules/services/scheduling
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-04-13 12:26:45 +0200
committerJörg Thalheim <joerg@thalheim.io>2017-04-13 12:28:19 +0200
commit5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc (patch)
treeda8b98f3bc22b6eba419cdead677864cfbd7b88d /nixos/modules/services/scheduling
parent9223fde9f39c279e7f9a099b253f2a78625ef95b (diff)
downloadnixpkgs-5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc.tar
nixpkgs-5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc.tar.gz
nixpkgs-5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc.tar.bz2
nixpkgs-5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc.tar.lz
nixpkgs-5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc.tar.xz
nixpkgs-5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc.tar.zst
nixpkgs-5ca7e8a69ae94d4c122c7fa69d77e749e83dbebc.zip
fcron: do not chmod at all
fcron does handle permissions on its own correctly
Diffstat (limited to 'nixos/modules/services/scheduling')
-rw-r--r--nixos/modules/services/scheduling/fcron.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/services/scheduling/fcron.nix b/nixos/modules/services/scheduling/fcron.nix
index bd1ecb40969..bc631bdd044 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}
       '';