Skip to content

Commit

Permalink
force alternative update and ohai reload immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
schisamo authored and jtimberman committed Dec 27, 2010
1 parent 5dcda46 commit c60d09d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/default.rb
Expand Up @@ -35,7 +35,7 @@
returns 0
only_if do platform?("ubuntu", "debian") end
action :nothing
notifies :create, resources(:ruby_block => "reload_ohai")
notifies :create, resources(:ruby_block => "reload_ohai"), :immediately
end

node.run_state[:java_pkgs].each do |pkg|
Expand All @@ -55,7 +55,7 @@
unless node.languages.java.hotspot.name.match(current_java_version_pattern)
log "Java install_flavor has changed, re-running 'update-java-alternatives'" do
level :info
notifies :run, resources(:execute => "update-java-alternatives"), :delayed
notifies :run, resources(:execute => "update-java-alternatives"), :immediately
end
end
end
Expand Down

0 comments on commit c60d09d

Please sign in to comment.