Commit 63edcd32 authored by Chris Roberts's avatar Chris Roberts
Browse files

Include conditional execution on debian families only

parent 59d39f46
......@@ -13,13 +13,14 @@ class Chef
def action_run
Chef::Log.debug 'DpkgAutostart: Compat method. Action does nothing.'
end
def action_create
template = Chef::Resource::Template.new('dpkg_autostart_file', run_context)
template.cookbook 'dpkg_autostart'
template.source 'policy-rc.d.erb'
template.path '/usr/sbin/policy-rc.d'
template.mode 0755
template.only_if{ node.platform_family?('debian') }
template.run_action(:create)
# Force this to the front of the line
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment