traffic-parsing/backgroundscripts/geodbdownload.sh

12 lines
337 B
Bash
Raw Normal View History

2015-03-30 16:59:19 -04:00
#!/bin/bash
if [ `date +%d` -gt 7 ] ; then
exit
else
wget -P /home/srv/html/netdata/mapping/ http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip -c /home/srv/html/netdata/mapping/GeoLiteCity.dat.gz > /home/srv/html/netdata/mapping/GeoLiteCity.dat
rm -f /home/srv/html/netdata/mapping/GeoLiteCity.dat.gz
fi