1 |
diff -ruN smeserver-geoip-1.1.2.old/root/etc/e-smith/events/actions/smeserver-geopip-download-action smeserver-geoip-1.1.2/root/etc/e-smith/events/actions/smeserver-geopip-download-action |
2 |
--- smeserver-geoip-1.1.2.old/root/etc/e-smith/events/actions/smeserver-geopip-download-action 2016-12-22 12:24:06.404001034 +0100 |
3 |
+++ smeserver-geoip-1.1.2/root/etc/e-smith/events/actions/smeserver-geopip-download-action 2016-12-22 12:30:49.041001073 +0100 |
4 |
@@ -1,4 +1,2 @@ |
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 |
+/usr/bin/geoipupdate |
10 |
diff -ruN smeserver-geoip-1.1.2.old/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db smeserver-geoip-1.1.2/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db |
11 |
--- smeserver-geoip-1.1.2.old/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db 2016-12-22 12:24:06.405001027 +0100 |
12 |
+++ smeserver-geoip-1.1.2/root/etc/e-smith/templates/etc/crontab/91_Update_Geoip_db 2016-12-22 12:31:16.959000958 +0100 |
13 |
@@ -1,3 +1,3 @@ |
14 |
# Updating the GeoIP database monthly on the 5th at 0:00h. |
15 |
-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 |
16 |
+0 0 10 * * root /usr/bin/geoipupdate |
17 |
|