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
a0dd0a2468
@ -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'],
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user