mode 0755
end
- if repository != "dns.git"
+ if node[:recipes].include?("trace") && repository != "dns.git"
template "#{git_directory}/#{repository}/hooks/post-receive" do
source "post-receive.erb"
owner "root"
owner "root"
group "root"
mode 0644
- notifies :reload, resources(:service => "xinetd")
+ notifies :reload, "service[xinetd]"
end