diff --git a/roles/easyredmine/templates/redmine_fetch_changesets.j2 b/roles/easyredmine/templates/redmine_fetch_changesets.j2 index d776a6e..7dc944d 100755 --- a/roles/easyredmine/templates/redmine_fetch_changesets.j2 +++ b/roles/easyredmine/templates/redmine_fetch_changesets.j2 @@ -4,6 +4,9 @@ cd {{ redmine_root_dir }} -/usr/local/bin/bundle exec rake \ +[[ -s "{{ rvm1_install_path }}/scripts/rvm" ]] && \ + source "{{ rvm1_install_path }}/scripts/rvm" + +{{ rvm1_install_path }}/gems/ruby-{{ ruby_version }}/bin/bundle exec rake \ eupathdb:fetch_changesets \ RAILS_ENV="production" diff --git a/roles/easyredmine/templates/redmine_receive_imap.j2 b/roles/easyredmine/templates/redmine_receive_imap.j2 index 049794a..3b6198b 100755 --- a/roles/easyredmine/templates/redmine_receive_imap.j2 +++ b/roles/easyredmine/templates/redmine_receive_imap.j2 @@ -2,7 +2,10 @@ cd {{ redmine_root_dir }} -/usr/local/bin/bundle exec rake \ +[[ -s "{{ rvm1_install_path }}/scripts/rvm" ]] && \ + source "{{ rvm1_install_path }}/scripts/rvm" + +{{ rvm1_install_path }}/gems/ruby-{{ ruby_version }}/bin/bundle exec rake \ redmine:email:receive_imap \ RAILS_ENV="production" \ project=sysdba \