Skip to content

Commit f55f5c3

Browse files
author
Dale McDiarmid
committed
Fix for checking init and systemd in scripts
1 parent 870035b commit f55f5c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/integration/helpers/serverspec/config_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,12 @@
103103
it { should_not exist }
104104
end
105105

106-
107106
#Init vs Systemd tests
108107
#Ubuntu 15 and up
109108
#Debian 8 and up
110109
#Centos 7 and up
111110

112-
if ((os[:family] == 'centos' && os[:release].to_f >= 7.0) ||
111+
if (((os[:family] == 'redhat' || os[:family] == 'centos') && os[:release].to_f >= 7.0) ||
113112
(os[:family] == 'ubuntu' && os[:release].to_f >= 15.0) ||
114113
(os[:family] == 'debian' && os[:release].to_f >= 8.0))
115114
describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do

0 commit comments

Comments
 (0)