Max 2 Tries for Geo Database for Webalizer
This commit is contained in:
parent
64691b8e7d
commit
82f4c410e9
2 changed files with 2 additions and 2 deletions
|
@ -3265,7 +3265,7 @@ function updateWebalizerGeoDBFile(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download the latest GEO DB
|
# Download the latest GEO DB
|
||||||
wget -O "webalizer-geodb-latest.tgz" -N "ftp://ftp.mrunix.net/pub/webalizer/webalizer-geodb-latest.tgz"
|
wget --tries=2 -O "webalizer-geodb-latest.tgz" -N "ftp://ftp.mrunix.net/pub/webalizer/webalizer-geodb-latest.tgz"
|
||||||
|
|
||||||
# If mirror isn't online, then use our local copy
|
# If mirror isn't online, then use our local copy
|
||||||
if [ $? -ne 0 ] || [ ! -s "webalizer-geodb-latest.tgz" ]; then
|
if [ $? -ne 0 ] || [ ! -s "webalizer-geodb-latest.tgz" ]; then
|
||||||
|
|
|
@ -2953,7 +2953,7 @@ function updateWebalizerGeoDBFile(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download the latest GEO DB
|
# Download the latest GEO DB
|
||||||
wget -O "webalizer-geodb-latest.tgz" -N "ftp://ftp.mrunix.net/pub/webalizer/webalizer-geodb-latest.tgz"
|
wget --tries=2 -O "webalizer-geodb-latest.tgz" -N "ftp://ftp.mrunix.net/pub/webalizer/webalizer-geodb-latest.tgz"
|
||||||
|
|
||||||
# If mirror isn't online, then use our local copy
|
# If mirror isn't online, then use our local copy
|
||||||
if [ $? -ne 0 ] || [ ! -s "webalizer-geodb-latest.tgz" ]; then
|
if [ $? -ne 0 ] || [ ! -s "webalizer-geodb-latest.tgz" ]; then
|
||||||
|
|
Loading…
Reference in a new issue