X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/c0fc233e4d310ddf4593838f21e2eee39c34d871..f2c5c9e904adce651c4cdb22df13b44b7ac2dc9c:/cookbooks/geoipupdate/attributes/default.rb diff --git a/cookbooks/geoipupdate/attributes/default.rb b/cookbooks/geoipupdate/attributes/default.rb index 3165aa115..315dfe146 100644 --- a/cookbooks/geoipupdate/attributes/default.rb +++ b/cookbooks/geoipupdate/attributes/default.rb @@ -1,4 +1,9 @@ default[:geoipupdate][:account] = "149244" default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country] +default[:geoipupdate][:directory] = if node[:lsb][:release].to_f < 22.04 + "/usr/share/GeoIP" + else + "/var/lib/GeoIP" + end default[:apt][:sources] |= ["maxmind"]