Skip to content

Commit

Permalink
Get geoipdate working on debian
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Mar 22, 2023
1 parent 4dbf2ca commit 8c0b9f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cookbooks/geoipupdate/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
default[:geoipupdate][:account] = "149244"
default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country]
default[:geoipupdate][:directory] = "/usr/share/GeoIP"
default[:geoipupdate][:directory] = if platform?("debian")
"/var/lib/GeoIP"
else
"/usr/share/GeoIP"
end
2 changes: 1 addition & 1 deletion cookbooks/web/resources/rails_port.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
"support_email" => "support@openstreetmap.org",
"email_return_path" => "bounces@openstreetmap.org",
"geonames_username" => "openstreetmap",
"maxmind_database" => "/usr/share/GeoIP/GeoLite2-Country.mmdb",
"maxmind_database" => "#{node[:geoipupdate][:directory]}/GeoLite2-Country.mmdb",
"max_request_area" => node[:web][:max_request_area],
"max_number_of_nodes" => node[:web][:max_number_of_nodes],
"max_number_of_way_nodes" => node[:web][:max_number_of_way_nodes],
Expand Down

0 comments on commit 8c0b9f0

Please sign in to comment.