mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Add rocky and almalinux to service resource
Signed-off-by: Sten Spans <sspans@schubergphilis.com>
This commit is contained in:
parent
f09d49da66
commit
b8677ac51f
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