Skip to content

Commit

Permalink
use latest_release path in update_crontab; fixes issue javan#288
Browse files Browse the repository at this point in the history
  • Loading branch information
cap10morgan committed Dec 30, 2012
1 parent d8c902a commit 8280bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/whenever/capistrano/recipes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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

Expand Down

0 comments on commit 8280bd0

Please sign in to comment.