1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

* Run cronjobs with a more userfriendly $PATH.

svn path=/nixos/trunk/; revision=18595
This commit is contained in:
Eelco Dolstra 2009-11-24 14:20:33 +00:00
parent 69a2842d01
commit 88b26c47ad

View file

@ -9,8 +9,8 @@ let
# Put all the system cronjobs together.
systemCronJobsFile = pkgs.writeText "system-crontab"
''
SHELL=${pkgs.bash}/bin/sh
PATH=${pkgs.coreutils}/bin:${pkgs.findutils}/bin:${pkgs.gnused}/bin:${pkgs.su}/bin
SHELL=${pkgs.bash}/bin/bash
PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
MAILTO="${config.services.cron.mailto}"
${pkgs.lib.concatStrings (map (job: job + "\n") config.services.cron.systemCronJobs)}
'';