]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geoipupdate/attributes/default.rb
web: increase mod_evasive page count to allow iD tiled API requests
[chef.git] / cookbooks / geoipupdate / attributes / default.rb
index 90476814c2cb80206d9ba1dc2bf6161987c7dc5d..a4b75358311798c949d9fb5fab2747167e01e3b0 100644 (file)
@@ -1,5 +1,7 @@
 default[:geoipupdate][:account] = "149244"
 default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country]
 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