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.'
def action_create
template ='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') }
# Force this to the front of the line
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