set path to debians default for geoipupdate
authorkali kaneko <kali@leap.se>
Tue, 11 Dec 2018 11:46:55 +0000 (12:46 +0100)
committerkali kaneko <kali@leap.se>
Tue, 11 Dec 2018 11:46:55 +0000 (12:46 +0100)
main.go

diff --git a/main.go b/main.go
index 0205a9a..1c00d14 100644 (file)
--- a/main.go
+++ b/main.go
@@ -73,7 +73,7 @@ func (th *txtHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 }
 
 func main() {
-       db, err := geoip2.Open("/usr/local/share/GeoIP/GeoLite2-City.mmdb")
+       db, err := geoip2.Open("/var/lib/GeoIP/GeoLite2-City.mmdb")
        if err != nil {
                log.Fatal(err)
        }