mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Merge pull request #5164 from inspec/ns/scientific-resource
Supports Scientific Linux in service resource
This commit is contained in:
commit
9af8ec5afe
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ module Inspec::Resources
|
||||||
elsif version > 0
|
elsif version > 0
|
||||||
SysV.new(inspec, service_ctl || "/usr/sbin/service")
|
SysV.new(inspec, service_ctl || "/usr/sbin/service")
|
||||||
end
|
end
|
||||||
when "redhat", "fedora", "centos", "oracle", "cloudlinux"
|
when "redhat", "fedora", "centos", "oracle", "cloudlinux", "scientific"
|
||||||
version = os[:release].to_i
|
version = os[:release].to_i
|
||||||
|
|
||||||
systemd = ((platform != "fedora" && version >= 7) ||
|
systemd = ((platform != "fedora" && version >= 7) ||
|
||||||
|
|
Loading…
Reference in a new issue