X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c7997c40ec75327df2fd9624908312d18850b854..238a31cadd90bb63a5dbdc7f4406aa51d786cc9d:/cookbooks/geoipupdate/attributes/default.rb diff --git a/cookbooks/geoipupdate/attributes/default.rb b/cookbooks/geoipupdate/attributes/default.rb index 90476814c..a4b753583 100644 --- a/cookbooks/geoipupdate/attributes/default.rb +++ b/cookbooks/geoipupdate/attributes/default.rb @@ -1,5 +1,7 @@ default[:geoipupdate][:account] = "149244" default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country] -default[:geoipupdate][:directory] = "/usr/share/GeoIP" - -default[:apt][:sources] |= ["maxmind"] +default[:geoipupdate][:directory] = if platform?("debian") + "/var/lib/GeoIP" + else + "/usr/share/GeoIP" + end