Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/statsmaster/files/cron_geoipdb_update.sh

Issue 5143068516810752: Added new stats server and user counter page (Closed)
Patch Set: Centralized stats processing Created Dec. 20, 2013, 3:47 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # 3 #
4 # paranoia settings 4 # paranoia settings
5 # 5 #
6 umask 022 6 umask 022
7 7
8 PATH=/sbin:/bin:/usr/sbin:/usr/bin 8 PATH=/sbin:/bin:/usr/sbin:/usr/bin
9 export PATH 9 export PATH
10 10
11 wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP. dat.gz -O /tmp/GeoIP.dat.gz 11 wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP. dat.gz -O /tmp/GeoIP.dat.gz
12 test -e /tmp/GeoIP.dat.gz && gzip -fd /tmp/GeoIP.dat.gz 12 test -e /tmp/GeoIP.dat.gz && gzip -fd /tmp/GeoIP.dat.gz
13 test -e /tmp/GeoIP.dat && mv -f /tmp/GeoIP.dat /usr/share/GeoIP/GeoIP.dat 13 test -e /tmp/GeoIP.dat && mv -f /tmp/GeoIP.dat /usr/share/GeoIP/GeoIP.dat
14 14
15 wget -q http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz -O /tm p/GeoIPv6.dat.gz 15 wget -q http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz -O /tm p/GeoIPv6.dat.gz
16 test -e /tmp/GeoIPv6.dat.gz && gzip -fd /tmp/GeoIPv6.dat.gz 16 test -e /tmp/GeoIPv6.dat.gz && gzip -fd /tmp/GeoIPv6.dat.gz
17 test -e /tmp/GeoIPv6.dat && mv -f /tmp/GeoIPv6.dat /usr/share/GeoIP/GeoIPv6.dat 17 test -e /tmp/GeoIPv6.dat && mv -f /tmp/GeoIPv6.dat /usr/share/GeoIP/GeoIPv6.dat
OLDNEW

Powered by Google App Engine
This is Rietveld