use webalizer geodb instead of geoip
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 20 Mar 2015 22:46:34 +0000 (18:46 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 20 Mar 2015 22:46:34 +0000 (18:46 -0400)
debian/hcoop-webalizer-config.cron.monthly [new file with mode: 0644]
debian/hcoop-webalizer-config.transform

diff --git a/debian/hcoop-webalizer-config.cron.monthly b/debian/hcoop-webalizer-config.cron.monthly
new file mode 100644 (file)
index 0000000..8a1a601
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Grab monthly Webalizer GeoDB update
+
+wget http://archive.mgm51.com/mirrors/webalizer-files/geodb/geodb-latest.tgz -O - | (cd /var/cache/webalizer/ && tar -xzf -)
index 0e4939f..1bff175 100644 (file)
@@ -1 +1 @@
-/etc/webalizer/webalizer.conf.hcoop </etc/webalizer/webalizer.conf.sample sed -e 's/^#\?LogFile\s.*$//' -e 's/^#\?Incremental\s.*$/Incremental yes/' -e 's/^#\?DNSCache\s.*$/DNSCache \/var\/cache\/webalizer\/dns_cache.db/' -e 's/^#GeoIP\(.*\)$/GeoIP\1/'
\ No newline at end of file
+/etc/webalizer/webalizer.conf.hcoop </etc/webalizer/webalizer.conf.sample sed -e 's/^#\?LogFile\s.*$//' -e 's/^#\?Incremental\s.*$/Incremental yes/' -e 's/^#\?DNSCache\s.*$/DNSCache \/var\/cache\/webalizer\/dns_cache.db/' -e 's/^#GeoDB\s.*$/GeoDB yes/' -e 's/^#GeoDBDatabase\s.*$/GeoDBDatabase \/var\/cache\/webalizer\/GeoDB.dat/'
\ No newline at end of file