#!/bin/sh #################################################### # $HOME/protected/cron/awstats/update_geo-ip_db.sh # #################################################### # Extract and replace the GeoIP.dat DB file. # Set variables DB_DIR=$HOME/protected/db # Database directory DB_GZ=GeoIP.dat.gz # Gzipped DB file DB_PL=update_awstats.pl # DB Perl update script #################################################### # Script, no edit below this point. cp $DB_GZ $DB_DIR/$DB_GZ gunzip -f $DB_DIR/$DB_GZ # -f (force overwrite) perl $DB_PL exit 0