Max 2 Tries for Geo Database for Webalizer

This commit is contained in:
earnolmartin 2021-08-16 08:55:36 -06:00
parent 64691b8e7d
commit 82f4c410e9
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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