Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Crontab runs this every ten minutes (root)
- */10 * * * * /root/scripts/redmine-rake.sh > /tmp/redmine-email.log 2>&1
- #this is the script
- #!/bin/bash
- export PATH=$PATH:/usr/local/rubygems/bin:/usr/local/rubygems/gems/bin
- export RUBYLIB=/usr/local/rubygems/lib
- export GEM_HOME=/usr/local/rubygems/gems
- cd /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs
- RAILS_ENV="production" rake redmine:email:receive_imap port=993 host=imap.gmail.com username=redmine@sproutventure.com password=redmine42 ssl=1
- cd /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs
- 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