Guest User

Untitled

a guest
Feb 21st, 2018
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #Crontab runs this every ten minutes (root)
  2. */10 * * * * /root/scripts/redmine-rake.sh > /tmp/redmine-email.log 2>&1
  3.  
  4. #this is the script
  5. #!/bin/bash
  6. export PATH=$PATH:/usr/local/rubygems/bin:/usr/local/rubygems/gems/bin
  7. export RUBYLIB=/usr/local/rubygems/lib
  8. export GEM_HOME=/usr/local/rubygems/gems
  9. cd /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs
  10. RAILS_ENV="production" rake redmine:email:receive_imap port=993 host=imap.gmail.com username=redmine@sproutventure.com password=redmine42 ssl=1
  11. cd /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs
  12. RAILS_ENV="production" /usr/local/rubygems/gems/bin/rake redmine:email:receive_imap host=imap.gmail.com username=[username] password=[password] ssl=YES port=993
Add Comment
Please, Sign In to add comment