X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f2c5c9e904adce651c4cdb22df13b44b7ac2dc9c..b9c0d9f47a55952cdb03690a9d1b865dd072c588:/cookbooks/geoipupdate/attributes/default.rb diff --git a/cookbooks/geoipupdate/attributes/default.rb b/cookbooks/geoipupdate/attributes/default.rb index 315dfe146..a4b753583 100644 --- a/cookbooks/geoipupdate/attributes/default.rb +++ b/cookbooks/geoipupdate/attributes/default.rb @@ -1,9 +1,7 @@ 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 +default[:geoipupdate][:directory] = if platform?("debian") "/var/lib/GeoIP" + else + "/usr/share/GeoIP" end - -default[:apt][:sources] |= ["maxmind"]