diff options
author | Micah Anderson <micah@leap.se> | 2013-11-28 11:56:38 -0500 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2013-11-28 12:16:30 -0500 |
commit | 81ff8e2b6aaebae35098357146958a8011af85fe (patch) | |
tree | c713f4205f3e00c2c6154f106e3d163ef36de154 /puppet | |
parent | 76c3048a15719bc1dd15287fd3406e94d40684ab (diff) |
fix cwd in webapp cronjobs
Change-Id: I2e189bf5e209c731077539a57f9b334ac66cd25b
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/modules/site_webapp/manifests/cron.pp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/puppet/modules/site_webapp/manifests/cron.pp b/puppet/modules/site_webapp/manifests/cron.pp index be997103..811ad11d 100644 --- a/puppet/modules/site_webapp/manifests/cron.pp +++ b/puppet/modules/site_webapp/manifests/cron.pp @@ -3,15 +3,13 @@ class site_webapp::cron { # cron tasks that need to be performed to cleanup the database cron { 'remove_expired_sessions': - command => 'bundle exec rake cleanup:sessions', - cwd => '/srv/leap/webapp', + command => 'cd /srv/leap/webapp && bundle exec rake cleanup:sessions', environment => 'RAILS_ENV=production', hour => 2, minute => 30; 'remove_expired_tokens': - command => 'bundle exec rake cleanup:tokens', - cwd => '/srv/leap/webapp', + command => 'cd /srv/leap/webapp && bundle exec rake cleanup:tokens', environment => 'RAILS_ENV=production', hour => 3, minute => 0; |