Actions
Bug #2195
closedCronjobs should use bundle exec in Debian package of foreman.
Description
The rake tasks in /etc/cron.d/foreman should use bundle exec.
--- etc/cron.d/foreman 2013-02-05 22:31:45.000000000 0100
++ etc/cron.d/foreman.bundle 2013-02-11 19:07:15.147455681 +0100@ -5,21 +5,21
@
FOREMAN_HOME=/usr/share/foreman
- Clean up the session entries in the database
-15 23 * * * foreman cd ${FOREMAN_HOME} && /usr/bin/rake db:sessions:clear
+15 23 * * * foreman cd ${FOREMAN_HOME} && bundle exec /usr/bin/rake db:sessions:clear
- Send out daily summary
-0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/bin/rake reports:summarize
+0 7 * * * foreman cd ${FOREMAN_HOME} && bundle exec /usr/bin/rake reports:summarize
- Expire old reports
-30 7 * * * foreman cd ${FOREMAN_HOME} && /usr/bin/rake reports:expire
+30 7 * * * foreman cd ${FOREMAN_HOME} && bundle exec /usr/bin/rake reports:expire
- Collects trends data
-/30 * * * * foreman cd ${FOREMAN_HOME} && /usr/bin/rake trends:counter
+/30 * * * * foreman cd ${FOREMAN_HOME} && bundle exec /usr/bin/rake trends:counter
- Only use the following cronjob if you're using stored configs!
- Populate hosts
-/30 * * * * foreman cd ${FOREMAN_HOME} && /usr/bin/rake puppet:migrate:populate_hosts
+/30 * * * * foreman cd ${FOREMAN_HOME} && bundle exec /usr/bin/rake puppet:migrate:populate_hosts
- Only uncomment the following cronjob if you're not using stored configs!
---EOF---
Files
Updated by Taylan Develioglu almost 12 years ago
- File bundle.diff bundle.diff added
Redmine doesn't like pasting.
Updated by Greg Sutcliffe almost 12 years ago
- Assignee set to Greg Sutcliffe
You can paste, but you have to indent everything with 4 spaces (like markdown).
Thanks for reporting - I'll get this fixed...
Updated by Anonymous almost 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset commit:"2021f7207189fd70ed2be3a3b9b88b54c7445d31".
Actions