summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_webapp/manifests/cron.pp6
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;