]> git.openstreetmap.org Git - dns.git/commitdiff
Use portable location for GeoIP database
authorTom Hughes <tom@compton.nu>
Mon, 11 Nov 2024 08:05:40 +0000 (08:05 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 11 Nov 2024 08:05:40 +0000 (08:05 +0000)
bin/mkgeo

index 2c0453b96bc784c29f4d7ab9fecca1e3831f1ef2..3a69d89af6639e476e78c61cc910a8dbd73656a8 100755 (executable)
--- a/bin/mkgeo
+++ b/bin/mkgeo
@@ -355,7 +355,7 @@ if (defined($gdnsname))
     my $continent = "";
 
     $gdnsmapfile->print("${gdnsname} => {\n");
-    $gdnsmapfile->print("  geoip2_db => /usr/share/GeoIP/GeoLite2-Country.mmdb\n");
+    $gdnsmapfile->print("  geoip2_db => /etc/gdnsd/geoip/GeoLite2-Country.mmdb\n");
     $gdnsmapfile->print("  datacenters => [" . join(",", sort(keys(%$clusters))) . "]\n");
     $gdnsmapfile->print("  map => {\n");
     $gdnsmapfile->print("    default => [" . join(",", sort(map { $_->{name} } grep { $_->{default} } values(%$clusters))) . "]\n");