Ashus.ashus.net

Full Version: GeoIP updater
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A simple script meant to be launched via crontab once a month to keep your offline GeoIP database up-to-date.

Code:
#! /bin/bash

cd /usr/share/GeoIP

wget "http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz" -O GeoIP.dat.gz
7z e -y GeoIP.dat.gz
rm GeoIP.dat.gz