From a0dd0a24682c9e85937c6910e0bcf88af5f20843 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 21 Apr 2016 18:48:41 +0200 Subject: [PATCH] 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 --- manifests/site.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/site.pp b/manifests/site.pp index 91e3c7e..400a327 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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'], } }