1 |
diff -Nur smeserver-geoip-1.0.5.old.bz8937/root/etc/e-smith/events/actions/smeserver-geopip-download-action smeserver-geoip-1.0.5.bz8937/root/etc/e-smith/events/actions/smeserver-geopip-download-action |
2 |
--- smeserver-geoip-1.0.5.old.bz8937/root/etc/e-smith/events/actions/smeserver-geopip-download-action 1970-01-01 01:00:00.000000000 +0100 |
3 |
+++ smeserver-geoip-1.0.5.bz8937/root/etc/e-smith/events/actions/smeserver-geopip-download-action 2015-06-13 13:43:13.169236318 +0200 |
4 |
@@ -0,0 +1,4 @@ |
5 |
+#!/bin/bash |
6 |
+wget -O /var/lib/GeoIP/GeoIP.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz 2>&1 1>/dev/null |
7 |
+gunzip -f /var/lib/GeoIP/GeoIP.dat.gz 2>&1 1>/dev/null |
8 |
+ |
9 |
diff -Nur smeserver-geoip-1.0.5.old.bz8937/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db smeserver-geoip-1.0.5.bz8937/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db |
10 |
--- smeserver-geoip-1.0.5.old.bz8937/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db 1970-01-01 01:00:00.000000000 +0100 |
11 |
+++ smeserver-geoip-1.0.5.bz8937/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db 2015-06-13 08:42:33.465559318 +0200 |
12 |
@@ -0,0 +1,3 @@ |
13 |
+# Updating the GeoIP database monthly on the 5th at 0:00h. |
14 |
+0 0 5 * * root /usr/bin/wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O /var/lib/GeoIP/GeoIP.dat.gz; /bin/gunzip -f /var/lib/GeoIP/GeoIP.dat.gz |
15 |
+ |