Commit 09850492 authored by jonathan.pirro's avatar jonathan.pirro
Browse files

more precise logic


Signed-off-by: default avatarJonathan Pirro <jmpirro@gmail.com>
parent 91ceb91e
...@@ -75,6 +75,6 @@ plat_specific_sv_name = case node['platform_family'] ...@@ -75,6 +75,6 @@ plat_specific_sv_name = case node['platform_family']
service plat_specific_sv_name do service plat_specific_sv_name do
action [:start, :enable] action [:start, :enable]
# this might seem crazy, but RHEL 6 is in fact Upstart and the runit service is upstart there # this might seem crazy, but RHEL 6 is in fact Upstart and the runit service is upstart there
provider Chef::Provider::Service::Upstart if (platform?('amazon') && node['platform_version'].to_i > 2) || (platform_family?('rhel') && node['platform_version'].to_i == 6) provider Chef::Provider::Service::Upstart if (platform?('amazon') && node['platform_version'].to_i != 2) || (platform_family?('rhel') && node['platform_version'].to_i == 6)
not_if { platform?('debian') && node['platform_version'].to_i < 8 } # there's no init script on debian 7...for reasons not_if { platform?('debian') && node['platform_version'].to_i < 8 } # there's no init script on debian 7...for reasons
end 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