mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
Merge pull request #5604 from sspans-sbp/patch-1
Add rocky and almalinux to service resource
This commit is contained in:
commit
a0d03dbd1b
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ module Inspec::Resources
|
|||
elsif version > 0
|
||||
SysV.new(inspec, service_ctl || "/usr/sbin/service")
|
||||
end
|
||||
when "redhat", "fedora", "centos", "oracle", "cloudlinux", "scientific"
|
||||
when "redhat", "fedora", "centos", "oracle", "cloudlinux", "scientific", "rocky", "almalinux"
|
||||
version = os[:release].to_i
|
||||
|
||||
systemd = ((platform != "fedora" && version >= 7) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue