X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/bec1c1f513bea40f88f00c54c2d8136737d9de88..be386c1df0de49e95aaf235927d5f0cc2d7a9bb0:/cookbooks/geoipupdate/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/geoipupdate/recipes/default.rb b/cookbooks/geoipupdate/recipes/default.rb index fedae0011..6d8e5b6e5 100644 --- a/cookbooks/geoipupdate/recipes/default.rb +++ b/cookbooks/geoipupdate/recipes/default.rb @@ -35,7 +35,7 @@ execute "geoipupdate" do command "geoipupdate" user "root" group "root" - not_if { ENV.key?("TEST_KITCHEN") || node[:geoipupdate][:editions].all? { |edition| ::File.exist?("/usr/share/GeoIP/#{edition}.mmdb") } } + not_if { kitchen? || node[:geoipupdate][:editions].all? { |edition| ::File.exist?("/usr/share/GeoIP/#{edition}.mmdb") } } end systemd_service "geoipupdate" do