X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a98035c2fefcff6c436b1e3c05cad4cf81975d89..5fe5ca053ad13b1b511ea295ca275fea5910139c:/cookbooks/geoipupdate/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/geoipupdate/recipes/default.rb b/cookbooks/geoipupdate/recipes/default.rb index 77c62e5ad..b27b439b6 100644 --- a/cookbooks/geoipupdate/recipes/default.rb +++ b/cookbooks/geoipupdate/recipes/default.rb @@ -27,7 +27,7 @@ template "/etc/GeoIP.conf" do source "GeoIP.conf.erb" owner "root" group "root" - mode 0o644 + mode "644" variables :license_keys => license_keys end @@ -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