From 1d38af98b27330bfda6af7c05f3cf854ad5f1525 Mon Sep 17 00:00:00 2001 From: David Swan Date: Thu, 18 Jun 2020 10:32:21 +0100 Subject: [PATCH] (maint) - Use yum install on redhat --- spec/spec_helper_acceptance_local.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper_acceptance_local.rb b/spec/spec_helper_acceptance_local.rb index 1958e10..fe032fe 100644 --- a/spec/spec_helper_acceptance_local.rb +++ b/spec/spec_helper_acceptance_local.rb @@ -13,7 +13,11 @@ end def install_iptables run_shell('iptables -V') rescue - run_shell('apt-get install iptables -y') + if os[:family] == 'redhat' + run_shell('yum install iptables -y') + else + run_shell('apt-get install iptables -y') + end end def iptables_version -- 2.45.2