]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geoipupdate/recipes/default.rb
Bump actions/cache from v1 to v2
[chef.git] / cookbooks / geoipupdate / recipes / default.rb
index 77c62e5ad93b5150be8b6dac3630360d7b0b7eb5..58bf40d8b032a9c4c982d7d2d2d5d987cbeb4d66 100644 (file)
@@ -35,7 +35,7 @@ execute "geoipdate" do
   command "geoipupdate"
   user "root"
   group "root"
-  not_if { node[:geoipupdate][:editions].all? { |edition| ::File.exist?("/usr/share/GeoIP/#{edition}.mmdb") } }
+  not_if { ENV.key?("TEST_KITCHEN") || node[:geoipupdate][:editions].all? { |edition| ::File.exist?("/usr/share/GeoIP/#{edition}.mmdb") } }
 end
 
 directory "/var/lib/GeoIP" do