Geo* - Update Script

Write script:

cd /etc/senginx
mkdir geoip
cd geoip
curl -o GeoIP.dat.gz
curl -o GeoLiteCity.dat.gz
gunzip -f *.gz

Make executable, run it to get files and create cronjob to run at 5am and 5:30am on the 8th and 9th of the month, following their monthly updates on the first Tuesday of each month. Four attempts over 2 days incase their server is down:

chmod +x
crontab -e
0,30 5 8,9 * * bash /etc/senginx/geoip/ >/dev/null 2>&1