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:
parent
69a2842d01
commit
88b26c47ad
|
@ -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)}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue