File update-geoip of Package GeoIPApache2

#!/bin/sh
GeoIPDIR=/usr/share/GeoIP
GeoIPDBFIle=GeoIP.dat
GeoIPURL="http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"
if [ ! -d $GeoIPDIR ]; then
	mkdir -p $GeoIPDIR
fi
wget -q  --timeout=15 --tries=1 -O - $GeoIPURL | gzip -c -d > $GeoIPDIR/$GeoIPDBFIle 2> /dev/null
openSUSE Build Service is sponsored by