Add /usr/local/bin to path for cron job

gerrit-dash-creator is used by reviewday and installed in
/usr/local/bin. Set the path up correctly.

Change-Id: I39c8ad1ebc5971eec7ed70bd975051296738774d
This commit is contained in:
Andreas Jaeger 2016-04-21 18:48:41 +02:00
parent b02d9846ca
commit a0dd0a2468
1 changed files with 5 additions and 4 deletions

View File

@ -105,10 +105,11 @@ define reviewday::site(
}
cron { 'update reviewday':
command => "cd /var/lib/reviewday/reviewday && PYTHONPATH=\$PWD flock -n /var/lib/reviewday/update.lock python bin/reviewday -o ${httproot} >> /var/log/reviewday.log 2>&1",
minute => '*/30',
user => 'reviewday',
require => Exec['install-reviewday-dependencies'],
command => "cd /var/lib/reviewday/reviewday && PYTHONPATH=\$PWD flock -n /var/lib/reviewday/update.lock python bin/reviewday -o ${httproot} >> /var/log/reviewday.log 2>&1",
environment => 'PATH=/bin:/usr/bin:/usr/local/bin',
minute => '*/30',
user => 'reviewday',
require => Exec['install-reviewday-dependencies'],
}
}