* 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.
|
# Put all the system cronjobs together.
|
||||||
systemCronJobsFile = pkgs.writeText "system-crontab"
|
systemCronJobsFile = pkgs.writeText "system-crontab"
|
||||||
''
|
''
|
||||||
SHELL=${pkgs.bash}/bin/sh
|
SHELL=${pkgs.bash}/bin/bash
|
||||||
PATH=${pkgs.coreutils}/bin:${pkgs.findutils}/bin:${pkgs.gnused}/bin:${pkgs.su}/bin
|
PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
|
||||||
MAILTO="${config.services.cron.mailto}"
|
MAILTO="${config.services.cron.mailto}"
|
||||||
${pkgs.lib.concatStrings (map (job: job + "\n") config.services.cron.systemCronJobs)}
|
${pkgs.lib.concatStrings (map (job: job + "\n") config.services.cron.systemCronJobs)}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user