notifies :run, resources(:execute => "apt-get update"), :immediatelyNotice that it's calling 'apt-get update' (no dash) and not 'apt-get-update' (with dash), which is also defined in by the apt cookbook.
Hi,
what is the chef way for running apt-get update in a recipe?
for now I am using:
execute "apt_update" do
command "apt-get update"
action :run
end
Archive powered by MHonArc 2.6.16.