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:
parent
b02d9846ca
commit
cbac50f2c2
|
@ -105,7 +105,9 @@ 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",
|
||||
# reviewday calls gerrit-dash-creator and that is installed in
|
||||
# /usr/local/bin, so update PATH for it.
|
||||
command => "PATH=$PATH:/usr/local/bin 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'],
|
||||
|
|
Loading…
Reference in New Issue