Ticket #648: crontab.rb.patch
| File crontab.rb.patch, 0.5 kB (added by porridge, 2 years ago) |
|---|
-
crontab.rb.new
old new 86 86 # See if we can match the hash against an existing cron job. 87 87 def self.match(hash) 88 88 model.find_all { |obj| 89 obj.value(:user) == hash[: user] and obj.value(:command) == hash[:command]89 obj.value(:user) == hash[:target] and obj.value(:command) == hash[:command] 90 90 }.each do |obj| 91 91 # we now have a cron job whose command exactly matches 92 92 # let's see if the other fields match