Permalink
Browse files

use latest_release path in update_crontab; fixes issue #288

  • Loading branch information...
1 parent d8c902a commit 8280bd016cbe38ec92215bad0cd6c5eb368832ca @cap10morgan cap10morgan committed Dec 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/whenever/capistrano/recipes.rb
@@ -18,7 +18,7 @@
args = {
:command => fetch(:whenever_command),
:flags => fetch(:whenever_update_flags),
- :path => fetch(:release_path)
+ :path => fetch(:latest_release)
}
if whenever_servers.any?
@@ -30,6 +30,7 @@
args[:path] = fetch(:previous_release)
else
# clear the crontab if no previous release
+ args[:path] = fetch(:release_path)
args[:flags] = fetch(:whenever_clear_flags)
end

0 comments on commit 8280bd0

Please sign in to comment.