From 82f4c410e9e3efca27dea6dc629bc7239541ce1c Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Mon, 16 Aug 2021 08:55:36 -0600 Subject: [PATCH] Max 2 Tries for Geo Database for Webalizer --- ehcp/ehcpforceupdate.sh | 2 +- ehcp/install_main.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ehcp/ehcpforceupdate.sh b/ehcp/ehcpforceupdate.sh index 3d23945..3bcefd0 100755 --- a/ehcp/ehcpforceupdate.sh +++ b/ehcp/ehcpforceupdate.sh @@ -3265,7 +3265,7 @@ function updateWebalizerGeoDBFile(){ fi # 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 [ $? -ne 0 ] || [ ! -s "webalizer-geodb-latest.tgz" ]; then diff --git a/ehcp/install_main.sh b/ehcp/install_main.sh index 3c08cd4..c564abf 100755 --- a/ehcp/install_main.sh +++ b/ehcp/install_main.sh @@ -2953,7 +2953,7 @@ function updateWebalizerGeoDBFile(){ fi # 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 [ $? -ne 0 ] || [ ! -s "webalizer-geodb-latest.tgz" ]; then