Skip to content

Instantly share code, notes, and snippets.

@dennmart
Created October 20, 2010 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennmart/636730 to your computer and use it in GitHub Desktop.
Save dennmart/636730 to your computer and use it in GitHub Desktop.
#!/bin/bash
wget -m -nd http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
# If the file doesn't exist, send an alert to Fail Notifier.
if [ ! -f GeoIpCountryCSV.zip ]
then
curl http://my-fail-notifier.heroku.com/fail -X POST -u basic_auth_user:basic_auth_password -d message="The download failed!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment