X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4b684eea1ab4af459576aac53d761f0af6fb46ef..45c45894797c49b6fbcb9af5b6ad8b8292d96415:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index a561681ac..9fa225d26 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -106,7 +106,7 @@ unless unit.nil? provider Chef::Provider::Service::Upstart action [ :enable, :start ] supports :status => true, :restart => true, :reload => false - subscribes :restart, resources(:template => "/etc/init/ttyS#{unit}.conf") + subscribes :restart, "template[/etc/init/ttyS#{unit}.conf]" end end @@ -122,7 +122,7 @@ if File.exist?("/etc/default/grub") group "root" mode 0644 variables :unit => unit, :speed => speed - notifies :run, resources(:execute => "update-grub") + notifies :run, "execute[update-grub]" end end