Commit 515ed608 authored by Zéfling's avatar Zéfling 🎨
Browse files

Little fixes for updateGeoIP.sh

parent 2250f795
#!/bin/bash
#
# GeoIP Databases Update
# Version 1.1
# Version 1.2
#
# updateGeoIP.sh
#
# SID Solutions
# http://sidsolutions.net
# Copyright (c) 01/13/2008
# Copyright (c) 2008-01-13
# Programmed by Sid McLaurin
#
# Adpated for Apache & regular Debian folders by kent1
......@@ -21,10 +21,10 @@
# /opt/scripts/
#
# Changes:
# 01/02/2009 - Create an URL for the new location of the
# GeoIP.dat
# 20/07/2009 - Adaptation forApache & regular Debian
# folders by kent1
#
# 2009-01-02 - Create an URL for the new location of the GeoIP.dat
# 2009-20-07 - Adaptation forApache & regular Debian folders by kent1
# 2016-07-11 - Add IpV6
# Variables
URL=http://www.maxmind.com/download/geoip/database/
......@@ -55,7 +55,7 @@ for GEODB in ${GEODBS[@]} ; do
echo -e "\tDownloading \033[1;33m"$GEODB"\033[0m ..........\c"
if [ $GEODB = "GeoLiteCity.dat.gz" ] || [ $GEODB = "GeoIPv6.dat.gz" ] ; then
/usr/bin/wget $URL$GEODB > /dev/null 2>&1
elif [ $GEODB = "GeoIPASNum.dat.gz" ] || [ $GEODB = "GeoIPASNum.dat.gz" ] ; then
elif [ $GEODB = "GeoIPASNum.dat.gz" ] || [ $GEODB = "GeoIPASNumv6.dat.gz" ] ; then
/usr/bin/wget $NUMURL$GEODB > /dev/null 2>&1
else
/usr/bin/wget $COUNTRYURL$GEODB > /dev/null 2>&1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment