Get the new version of the GeoIP data on every run.
This commit is contained in:
parent
e0f003c8bc
commit
c4d939b8c6
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@
|
|||
# if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
# Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
[ -f GeoIPCountryCSV.zip ] || wget -q -T 5 -t 1 http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
|
||||
rm -f /root/GeoIPCountryCSV.zip
|
||||
|
||||
wget -q -T 5 -t 1 http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
|
||||
unzip -q GeoIPCountryCSV.zip || exit 1
|
||||
|
||||
awk -F \" '{print $10","$6","$8}' GeoIPCountryWhois.csv > cbe.csv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue