From 2ad407d160a06a86a1f45080ac1464cff4d5dd59 Mon Sep 17 00:00:00 2001 From: Vic Iglesias Date: Tue, 22 Sep 2015 21:56:25 -0700 Subject: [PATCH] Use same check for download and install of repos --- recipes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index d22f1fa..16f63ff 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -109,12 +109,12 @@ remote_file "/tmp/epel-release.rpm" do source node["eucalyptus"]["epel-rpm"] - not_if "rpm -qa | grep 'epel-release'" + not_if "ls /etc/yum.repos.d/epel*" end remote_file "/tmp/elrepo-release.rpm" do source node["eucalyptus"]["elrepo-rpm"] - not_if "rpm -qa | grep 'elrepo-release'" + not_if "ls /etc/yum.repos.d/elrepo*" end execute 'yum install -y *epel*.rpm' do