lib/deputy.rb in deputy-0.1.18 vs lib/deputy.rb in deputy-0.1.19

- old
+ new

@@ -81,9 +81,13 @@ VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip def self.install_cron executable = `which deputy`.strip `crontab -l | { cat; echo "* * * * * #{executable} --run-plugins >> /tmp/deputy.log 2>&1"; } | crontab -` + if executable !~ %r{^/usr/} + puts "make deputy globally available! or e.g. calls from inside cronjobs do not know deputy" + puts "sudo ln -s #{executable} /usr/bin/deputy" + end end def self.run_plugins content = get("/plugins.rb") \ No newline at end of file