Created
October 20, 2010 16:13
-
-
Save dennmart/636730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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