From 38423affd797da84ad7dad613ce4dba2a4df36a0 Mon Sep 17 00:00:00 2001 From: George Liu Date: Tue, 4 Jul 2017 04:32:17 +1000 Subject: [PATCH] for IPv4 connection for all wget & curl calls - to reduce expose to IPv6 connectivity issues, force all wget and curl commands to connect via IPv4 only --- addons/avginstall.sh | 2 +- addons/customcurl.sh | 6 +- addons/geoip.sh | 6 +- addons/golang.sh | 2 +- addons/ioncube.sh | 12 +- addons/maldet.sh | 2 +- addons/modsecurity.sh | 8 +- addons/nodejs.sh | 6 +- addons/passenger.sh | 4 +- addons/rclone.sh | 4 +- addons/wget.sh | 10 +- addons/wpcli.sh | 8 +- centmin.sh | 2 +- config/motd/dmotd.sh | 4 +- config/php-fpm/php-fpm-minond_readme.txt | 2 +- inc/axelsetup.inc | 4 +- inc/brotli.inc | 4 +- inc/compress.inc | 6 +- inc/cpcheck.inc | 8 +- inc/customrpms.inc | 6 +- inc/downloads.inc | 218 +++++++++++------------ inc/ffmpeginstall.inc | 2 +- inc/geoip.inc | 6 +- inc/igbinary.inc | 4 +- inc/imagick_install.inc | 2 +- inc/memcached_install.inc | 4 +- inc/nginx_modules.inc | 4 +- inc/nginx_modules_openresty.inc | 10 +- inc/nginx_patch.inc | 22 +-- inc/nginx_upgrade.inc | 12 +- inc/openssl_install.inc | 8 +- inc/php_upgrade.inc | 2 +- inc/phpng_download.inc | 8 +- inc/postfix.inc | 2 +- inc/postgresql.inc | 6 +- inc/redis.inc | 2 +- inc/suhosin_setup.inc | 2 +- inc/updater_submenu.inc | 10 +- inc/wpsetup.inc | 2 +- inc/zendopcache_install.inc | 2 +- installer-dnf-gitlab.sh | 8 +- installer-dnf.sh | 8 +- installer-gitlab.sh | 8 +- installer-latest-gitlab.sh | 8 +- installer-latest.sh | 8 +- installer-minimal-gitlab.sh | 8 +- installer-minimal.sh | 8 +- installer-ngxpagespeed-gitlab.sh | 8 +- installer-ngxpagespeed.sh | 8 +- installer.sh | 8 +- installer55-gitlab.sh | 8 +- installer55.sh | 8 +- installer56-gitlab.sh | 8 +- installer56.sh | 8 +- installer7-gitlab.sh | 8 +- installer7.sh | 8 +- tools/cminfo.sh | 4 +- tools/imagemagick-update.sh | 2 +- tools/kernelcheck.sh | 4 +- tools/nginxupdate.sh | 2 +- tools/nv.sh | 2 +- tools/nvwp.sh | 4 +- tools/sitestatus.sh | 2 +- 63 files changed, 291 insertions(+), 291 deletions(-) diff --git a/addons/avginstall.sh b/addons/avginstall.sh index ca6b615f8..f3db39e10 100755 --- a/addons/avginstall.sh +++ b/addons/avginstall.sh @@ -38,7 +38,7 @@ SRCDIR='/usr/local/src' CURL_TIMEOUTS=' --max-time 30 --connect-timeout 10' # avg site blocks lynx calls switch to curl # AVGDOWNLOADRPM=$(lynx -dump http://free.avg.com/us-en/download-free-all-product | grep 'download.avgfree.com' | grep 'rpm' | awk -F " " '{print $2}') -AVGDOWNLOADRPM=$(curl -s${CURL_TIMEOUTS} http://free.avg.com/us-en/download-free-all-product | grep -o '' | sed -e 's/' | sed -e 's//dev/null 2>&1; echo $?)" != '0' ]]; then cd $DIR_TMP - curl --silent --location https://rpm.nodesource.com/setup_4.x | bash - + curl --silent -4 --location https://rpm.nodesource.com/setup_4.x | bash - yum -y install nodejs --disableplugin=priorities --disablerepo=epel npm install npm@latest -g @@ -182,7 +182,7 @@ installnodejs() { if [[ "$CENTOS_SEVEN" = '7' ]]; then if [[ "$(which node >/dev/null 2>&1; echo $?)" != '0' ]]; then cd $DIR_TMP - curl --silent --location https://rpm.nodesource.com/setup_4.x | bash - + curl --silent -4 --location https://rpm.nodesource.com/setup_4.x | bash - yum -y install nodejs --disableplugin=priorities --disablerepo=epel npm install npm@latest -g @@ -243,7 +243,7 @@ elif [[ "$CENTOS_SIX" = '6' ]]; then if [ -s node-v${NODEJSVER}.tar.gz ]; then cecho "node-v${NODEJSVER}.tar.gz Archive found, skipping download..." $boldgreen else - wget -c --progress=bar http://nodejs.org/dist/v${NODEJSVER}/node-v${NODEJSVER}.tar.gz --tries=3 + wget -c4 --progress=bar http://nodejs.org/dist/v${NODEJSVER}/node-v${NODEJSVER}.tar.gz --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: node-v${NODEJSVER}.tar.gz download failed." $boldgreen diff --git a/addons/passenger.sh b/addons/passenger.sh index d7b060e40..69e1fcabc 100755 --- a/addons/passenger.sh +++ b/addons/passenger.sh @@ -143,7 +143,7 @@ if [[ "$CENTOS_SEVEN" = '7' ]]; then if [[ "$(which node >/dev/null 2>&1; echo $?)" != '0' ]]; then cd $DIR_TMP - curl --silent --location https://rpm.nodesource.com/setup_4.x | bash - + curl --silent -4 --location https://rpm.nodesource.com/setup_4.x | bash - yum -y install nodejs --disableplugin=priorities --disablerepo=epel npm install npm@latest -g @@ -174,7 +174,7 @@ fi installnodejs_new() { if [[ "$(which node >/dev/null 2>&1; echo $?)" != '0' ]]; then cd $DIR_TMP - curl --silent --location https://rpm.nodesource.com/setup_4.x | bash - + curl --silent -4 --location https://rpm.nodesource.com/setup_4.x | bash - yum -y install nodejs --disableplugin=priorities --disablerepo=epel npm install npm@latest -g diff --git a/addons/rclone.sh b/addons/rclone.sh index d4abd9f2d..9a56993c1 100755 --- a/addons/rclone.sh +++ b/addons/rclone.sh @@ -162,7 +162,7 @@ rclone_install() { echo "------------------------------------------------" cd "$DIR_TMP" rm -rf rclone-* - wget -cnv -O rclone-current-linux-amd64.zip "${BASEURL}/rclone-current-linux-amd64.zip" + wget -cnv4 -O rclone-current-linux-amd64.zip "${BASEURL}/rclone-current-linux-amd64.zip" unzip rclone-current-linux-amd64.zip cd rclone-*-linux-amd64 \cp -f rclone /usr/sbin/ @@ -184,7 +184,7 @@ rclone_install() { echo "------------------------------------------------" cd "$DIR_TMP" rm -rf rclone-* - wget -cnv -O rclone-current-linux-386.zip "${BASEURL}/rclone-current-linux-386.zip" + wget -cnv4 -O rclone-current-linux-386.zip "${BASEURL}/rclone-current-linux-386.zip" unzip rclone-current-linux-386.zip cd rclone-*-linux-386 \cp -f rclone /usr/sbin/ diff --git a/addons/wget.sh b/addons/wget.sh index 408f865ed..e9406e5b6 100755 --- a/addons/wget.sh +++ b/addons/wget.sh @@ -294,7 +294,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -333,14 +333,14 @@ source_wgetinstall() { cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - curl -sI --connect-timeout 5 --max-time 5 "$WGET_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$WGET_LINK" | grep 'HTTP\/' | grep '200' WGET_CURLCHECK=$? if [[ "$WGET_CURLCHECK" = '0' ]]; then - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 else WGET_LINK="$WGET_LINKLOCAL" - echo "wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3" - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + echo "wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3" + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 fi ERROR=$? if [[ "$ERROR" != '0' ]]; then diff --git a/addons/wpcli.sh b/addons/wpcli.sh index 67c554eb5..71703ebea 100755 --- a/addons/wpcli.sh +++ b/addons/wpcli.sh @@ -36,7 +36,7 @@ fi # fallback mirror if official wp-cli download http status is not 200, use local # centminmod.com mirror download instead -curl -sI --connect-timeout 5 --max-time 5 $WPCLILINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 +curl -4Is --connect-timeout 5 --max-time 5 $WPCLILINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 WPCLI_CURLCHECK=$? if [[ "$WPCLI_CURLCHECK" != '0' ]]; then WPCLILINK='https://centminmod.com/centminmodparts/wp-cli/wp-cli.phar' @@ -69,7 +69,7 @@ updatewpcli() { echo "update wp-cli" rm -rf /usr/bin/wp - wget -cnv --no-check-certificate $WPCLILINK -O /usr/bin/wp --tries=3 + wget -cnv4 --no-check-certificate $WPCLILINK -O /usr/bin/wp --tries=3 chmod 0700 /usr/bin/wp /usr/bin/wp --info --allow-root echo "" @@ -96,7 +96,7 @@ if [ -s /usr/bin/wp ]; then echo "/usr/bin/wp [found]" else echo "Error: /usr/bin/wp not found !!! Downloading now......" - wget -cnv --no-check-certificate $WPCLILINK -O /usr/bin/wp --tries=3 + wget -cnv4 --no-check-certificate $WPCLILINK -O /usr/bin/wp --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then echo "Error: /usr/bin/wp download failed." @@ -115,7 +115,7 @@ if [ -s "${WPCLIDIR}/wp-completion.bash" ]; then echo "${WPCLIDIR}/wp-completion.bash [found]" else echo "Error: ${WPCLIDIR}/wp-completion.bash not found !!! Downloading now......" - wget -cnv --no-check-certificate https://github.com/wp-cli/wp-cli/raw/master/utils/wp-completion.bash -O ${WPCLIDIR}/wp-completion.bash --tries=3 + wget -cnv4 --no-check-certificate https://github.com/wp-cli/wp-cli/raw/master/utils/wp-completion.bash -O ${WPCLIDIR}/wp-completion.bash --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then echo "Error: ${WPCLIDIR}/wp-completion.bash download failed." diff --git a/centmin.sh b/centmin.sh index 76990a185..a38d84c61 100755 --- a/centmin.sh +++ b/centmin.sh @@ -1012,7 +1012,7 @@ sar_call() { download_cmd() { HTTPS_AXELCHECK=$(echo "$1" |awk -F '://' '{print $1}') - if [[ "$(curl -Isv $1 2>&1 | egrep 'ECDSA')" ]]; then + if [[ "$(curl -4Isv $1 2>&1 | egrep 'ECDSA')" ]]; then # axel doesn't natively support ECC 256bit ssl certs # with ECDSA ciphers due to CentOS system OpenSSL 1.0.2e echo "ECDSA SSL Cipher BASED HTTPS detected, switching from axel to wget" diff --git a/config/motd/dmotd.sh b/config/motd/dmotd.sh index 0896644b6..c16a5e2cb 100755 --- a/config/motd/dmotd.sh +++ b/config/motd/dmotd.sh @@ -120,7 +120,7 @@ fi ngxver_checker() { if [[ "$(which nginx >/dev/null 2>&1; echo $?)" = '0' ]]; then - LASTEST_NGINXVERS=$(curl -sL https://nginx.org/en/download.html 2>&1 | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1) + LASTEST_NGINXVERS=$(curl -4sL https://nginx.org/en/download.html 2>&1 | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1) CURRENT_NGINXVERS=$(nginx -v 2>&1 | awk -F '/' '{print $2}') if [[ "$CURRENT_NGINXVERS" != "$LASTEST_NGINXVERS" ]]; then echo @@ -142,7 +142,7 @@ gitenv_askupdate() { # if git remote repo url is not same as one defined in giturl.txt then pull a new copy of # centmin mod code locally using giturl.txt defined git repo name GET_GITVER=$(git --version | awk '{print $3}' | sed -e 's|\.||g' | cut -c1,2) - CURL_GITURL=$(curl -s https://raw.githubusercontent.com/centminmod/centminmod/$(awk -F "=" '/branchname=/ {print $2}' ${CMSCRIPT_GITDIR}/centmin.sh | sed -e "s|'||g" )/giturl.txt) + CURL_GITURL=$(curl -s4 https://raw.githubusercontent.com/centminmod/centminmod/$(awk -F "=" '/branchname=/ {print $2}' ${CMSCRIPT_GITDIR}/centmin.sh | sed -e "s|'||g" )/giturl.txt) # if git version >1.8 use supported ls-remote --get-url flag otherwise use alternative if [[ -d "${CMSCRIPT_GITDIR}" ]]; then if [[ "$GET_GITVER" -ge '18' ]]; then diff --git a/config/php-fpm/php-fpm-minond_readme.txt b/config/php-fpm/php-fpm-minond_readme.txt index 143c3598f..9e58fa7e8 100644 --- a/config/php-fpm/php-fpm-minond_readme.txt +++ b/config/php-fpm/php-fpm-minond_readme.txt @@ -1,5 +1,5 @@ cd /usr/local/etc/ -wget http://centminmod.com/phpfpm/php-fpm-minond.conf +wget -4 http://centminmod.com/phpfpm/php-fpm-minond.conf cp php-fpm.conf php-fpm.conf-backupold unalias cp cp -f php-fpm-minond.conf php-fpm.conf diff --git a/inc/axelsetup.inc b/inc/axelsetup.inc index d155459d2..7349930b1 100644 --- a/inc/axelsetup.inc +++ b/inc/axelsetup.inc @@ -147,7 +147,7 @@ axelsetup() { echo "rpmforge-release-0.5.3-1.el5.rf.${ARCH}.rpm [found]" else echo "Error: rpmforge-release-0.5.3-1.el5.rf.${ARCH}.rpm not found !!! Downloading now......" - wget -cnv https://centminmod.com/centminmodparts/v123/04rpms/${ARCH}/rpmforge-release-0.5.3-1.el5.rf.${ARCH}.rpm --tries=3 + wget -cnv4 https://centminmod.com/centminmodparts/v123/04rpms/${ARCH}/rpmforge-release-0.5.3-1.el5.rf.${ARCH}.rpm --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: rpmforge-release-0.5.3-1.el5.rf.${ARCH}.rpm download failed." $boldgreen @@ -177,7 +177,7 @@ axelsetup() { echo "axel-2.4-1.el5.rf.${ARCH}.rpm [found]" else echo "Error: axel-2.4-1.el5.rf.${ARCH}.rpm not found !!! Downloading now......" - wget -cnv https://centminmod.com/centminmodparts/v123/04rpms/${ARCH}/axel-2.4-1.el5.rf.${ARCH}.rpm --tries=3 + wget -cnv4 https://centminmod.com/centminmodparts/v123/04rpms/${ARCH}/axel-2.4-1.el5.rf.${ARCH}.rpm --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: axel-2.4-1.el5.rf.${ARCH}.rpm download failed." $boldgreen diff --git a/inc/brotli.inc b/inc/brotli.inc index c148cf8f9..0d294827c 100644 --- a/inc/brotli.inc +++ b/inc/brotli.inc @@ -117,7 +117,7 @@ libbroti_install() { LIBBROTLI_LINK='https://github.com/bagder/libbrotli' # fallback mirror if official github is down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 $LIBBROTLI_LINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 $LIBBROTLI_LINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 LIBBROTLI_CURLCHECK=$? if [[ "$LIBBROTLI_CURLCHECK" != '0' ]]; then LIBBROTLI_LINK='https://gitlab.com/centminmod-github-mirror/libbrotli.git' @@ -171,7 +171,7 @@ ngxbrotli_download() { NGXBROTLILINK='https://github.com/google/ngx_brotli' # fallback mirror if official github is down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 $NGXBROTLILINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 $NGXBROTLILINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 NGXBROTLICURLCHECK=$? if [[ "$NGXBROTLICURLCHECK" != '0' ]]; then NGXBROTLILINK='https://gitlab.com/centminmod-github-mirror/ngx_brotli.git' diff --git a/inc/compress.inc b/inc/compress.inc index 8e6fcb7d5..2c6b8e04c 100644 --- a/inc/compress.inc +++ b/inc/compress.inc @@ -19,14 +19,14 @@ function funct_pigzinstall { echo "pigz-${PIGZ_VER}.tar.gz [found]" else echo "Error: pigz-${PIGZ_VER}.tar.gz not found!!! Downloading now......" - wget -c --no-check-certificate http://zlib.net/pigz/pigz-${PIGZ_VER}.tar.gz --tries=3 + wget -c4 --no-check-certificate http://zlib.net/pigz/pigz-${PIGZ_VER}.tar.gz --tries=3 fi tar xzf pigz-${PIGZ_VER}.tar.gz cd pigz-${PIGZ_VER} make clean # rm -rf Makefile - # wget -c --no-check-certificate https://raw.github.com/madler/pigz/5316bf3440025ca37d84d7580a8f616c0127668a/Makefile -O Makefile + # wget -c4 --no-check-certificate https://raw.github.com/madler/pigz/5316bf3440025ca37d84d7580a8f616c0127668a/Makefile -O Makefile make \cp -f pigz unpigz /usr/bin ls -lh /usr/bin | grep pigz @@ -75,7 +75,7 @@ function funct_lbzip2install { echo "lbzip2-${LBZIP_VER}.tar.gz [found]" else echo "Error: lbzip2-${LBZIP_VER}.tar.gz not found!!! Downloading now......" - wget -c --no-check-certificate http://archive.lbzip2.org/lbzip2-${LBZIP_VER}.tar.gz --tries=3 + wget -c4 --no-check-certificate http://archive.lbzip2.org/lbzip2-${LBZIP_VER}.tar.gz --tries=3 fi tar xzf lbzip2-${LBZIP_VER}.tar.gz diff --git a/inc/cpcheck.inc b/inc/cpcheck.inc index 427dc3978..22707b939 100644 --- a/inc/cpcheck.inc +++ b/inc/cpcheck.inc @@ -383,9 +383,9 @@ gitenv_askupdate() { # https://github.com/centminmod/centminmod/raw/${branchname}/giturl.txt # check if you can properly resolve raw.githubusercontent.com first in case of dns outpages # issues at github end https://community.centminmod.com/threads/centmin-mod-github-com-repo-504-timeouts.9232/ - CURL_GITURLCHECKER=$(curl -s https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt >/dev/null 2>&1; echo $?) + CURL_GITURLCHECKER=$(curl -s4 https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt >/dev/null 2>&1; echo $?) if [[ "$CURL_GITURLCHECKER" = '0' ]]; then - CURL_GITURL=$(curl -s https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) + CURL_GITURL=$(curl -s4 https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) else # just default to https://github.com/centminmod/centminmod.git if can not resolve the # https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt @@ -480,7 +480,7 @@ set_logdate() { ngxver_checker() { if [[ "$(which nginx >/dev/null 2>&1; echo $?)" = '0' ]]; then - LASTEST_NGINXVERS=$(curl -sL https://nginx.org/en/download.html 2>&1 | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1) + LASTEST_NGINXVERS=$(curl -4sL https://nginx.org/en/download.html 2>&1 | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1) CURRENT_NGINXVERS=$(nginx -v 2>&1 | awk -F '/' '{print $2}') if [[ "$CURRENT_NGINXVERS" != "$LASTEST_NGINXVERS" ]]; then echo @@ -1273,7 +1273,7 @@ ovhkernelcheck() { # Intel Xeon D-15xx Broadwell-DE processors which need # OVH custom kernel for the newer Intel network NIC support # Intel Corporation Ethernet Connection X552/X557-AT 10GBASE-T - OVHASNCHECK=$(curl -s${CURL_TIMEOUTS} ipinfo.io/org | grep -o 'OVH' >/dev/null 2>&1; echo $?) + OVHASNCHECK=$(curl -4s${CURL_TIMEOUTS} ipinfo.io/org | grep -o 'OVH' >/dev/null 2>&1; echo $?) OVHKERNEL_CHECK=$(uname -r | grep '\-grs' >/dev/null 2>&1; echo $?) BROADWELLDE_CHECK=$(grep 'Xeon(R) CPU D-15' /proc/cpuinfo >/dev/null 2>&1; echo $?) # more sure way to check for OVH custom kernel if /root/.ovhrc file exists diff --git a/inc/customrpms.inc b/inc/customrpms.inc index 0572743d7..7046c8f86 100644 --- a/inc/customrpms.inc +++ b/inc/customrpms.inc @@ -20,7 +20,7 @@ if [[ "$CUSTOM_CURLRPM" = [yY] ]]; then if [[ "$CENTOS_SIX" = '6' && "$(uname -m)" != 'x86_64' ]]; then ############################# # el6 32bit - curl -sI --connect-timeout 5 --max-time 5 http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel6/i386/city-fan.org-release-1-13.rhel6.noarch.rpm + curl -4Is --connect-timeout 5 --max-time 5 http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel6/i386/city-fan.org-release-1-13.rhel6.noarch.rpm CURL_NOARCHRPMCHECK=$? if [[ "$CURL_NOARCHRPMCHECK" = '0' ]]; then rpm -Uvh http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel6/i386/city-fan.org-release-1-13.rhel6.noarch.rpm @@ -50,7 +50,7 @@ if [[ "$CUSTOM_CURLRPM" = [yY] ]]; then elif [[ "$CENTOS_SIX" = '6' && "$(uname -m)" = 'x86_64' ]]; then ############################################################### # el6 64bit - curl -sI --connect-timeout 5 --max-time 5 http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm + curl -4Is --connect-timeout 5 --max-time 5 http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm CURL_NOARCHRPMCHECK=$? if [[ "$CURL_NOARCHRPMCHECK" = '0' ]]; then rpm -Uvh http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm @@ -81,7 +81,7 @@ if [[ "$CUSTOM_CURLRPM" = [yY] ]]; then elif [[ "$CENTOS_SEVEN" = '7' && "$(uname -m)" = 'x86_64' ]]; then ############################################################### # el7 64bit - curl -sI --connect-timeout 5 --max-time 5 http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-1-13.rhel7.noarch.rpm + curl -4Is --connect-timeout 5 --max-time 5 http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-1-13.rhel7.noarch.rpm CURL_NOARCHRPMCHECK=$? if [[ "$CURL_NOARCHRPMCHECK" = '0' ]]; then rpm -Uvh http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-1-13.rhel7.noarch.rpm diff --git a/inc/downloads.inc b/inc/downloads.inc index 7bf49ac73..410cefe40 100644 --- a/inc/downloads.inc +++ b/inc/downloads.inc @@ -149,7 +149,7 @@ libresslgeolocation() { if [[ -z "$SERVER_COUNTRY" ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -159,12 +159,12 @@ libresslgeolocation() { echo "AT server detected" LIBRESSL_MIRRORURL="http://ftp2.eu.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -175,12 +175,12 @@ libresslgeolocation() { echo "AU server detected" LIBRESSL_MIRRORURL="http://mirror.aarnet.edu.au/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -191,12 +191,12 @@ libresslgeolocation() { echo "BG server detected" LIBRESSL_MIRRORURL="http://mirror.telepoint.bg/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -207,12 +207,12 @@ libresslgeolocation() { echo "BR server detected" LIBRESSL_MIRRORURL="http://mirrors.unb.br/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -223,12 +223,12 @@ libresslgeolocation() { echo "CA server detected" LIBRESSL_MIRRORURL="http://openbsd.cs.toronto.edu/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -239,12 +239,12 @@ libresslgeolocation() { echo "CN server detected" LIBRESSL_MIRRORURL="http://mirror.yandex.ru/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -255,12 +255,12 @@ libresslgeolocation() { echo "CR server detected" LIBRESSL_MIRRORURL="http://mirrors.ucr.ac.cr/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -271,12 +271,12 @@ libresslgeolocation() { echo "DE server detected" LIBRESSL_MIRRORURL="http://ftp.hostserver.de/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -287,12 +287,12 @@ libresslgeolocation() { echo "DK server detected" LIBRESSL_MIRRORURL="http://mirror.one.com/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -303,12 +303,12 @@ libresslgeolocation() { echo "FR server detected" LIBRESSL_MIRRORURL="http://ftp.fr.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -319,12 +319,12 @@ libresslgeolocation() { echo "GB server detected" LIBRESSL_MIRRORURL="http://mirror.bytemark.co.uk/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -335,12 +335,12 @@ libresslgeolocation() { echo "HK server detected" LIBRESSL_MIRRORURL="http://www.ftp.ne.jp/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -351,12 +351,12 @@ libresslgeolocation() { echo "ID server detected" LIBRESSL_MIRRORURL="http://kartolo.sby.datautama.net.id/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -367,12 +367,12 @@ libresslgeolocation() { echo "IE server detected" LIBRESSL_MIRRORURL="http://ftp.heanet.ie/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -383,12 +383,12 @@ libresslgeolocation() { echo "IN server detected" LIBRESSL_MIRRORURL="http://mirror.rise.ph/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -399,12 +399,12 @@ libresslgeolocation() { echo "IT server detected" LIBRESSL_MIRRORURL="http://openbsd.mirror.garr.it/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -415,12 +415,12 @@ libresslgeolocation() { echo "NL server detected" LIBRESSL_MIRRORURL="http://ftp.bit.nl/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -431,12 +431,12 @@ libresslgeolocation() { echo "JP server detected" LIBRESSL_MIRRORURL="http://www.ftp.ne.jp/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -447,12 +447,12 @@ libresslgeolocation() { echo "PH server detected" LIBRESSL_MIRRORURL="http://mirror.rise.ph/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -463,12 +463,12 @@ libresslgeolocation() { echo "PL server detected" LIBRESSL_MIRRORURL="http://ftp.icm.edu.pl/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -479,12 +479,12 @@ libresslgeolocation() { echo "RU server detected" LIBRESSL_MIRRORURL="http://mirror.yandex.ru/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -495,12 +495,12 @@ libresslgeolocation() { echo "SE server detected" LIBRESSL_MIRRORURL="http://ftp.eu.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -511,12 +511,12 @@ libresslgeolocation() { echo "SG server detected" LIBRESSL_MIRRORURL="http://mirror.rise.ph/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -527,12 +527,12 @@ libresslgeolocation() { echo "TH server detected" LIBRESSL_MIRRORURL="http://mirror.rise.ph/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -543,27 +543,27 @@ libresslgeolocation() { echo "US server detected" LIBRESSL_MIRRORURL="http://ftp3.usa.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://mirrors.mit.edu/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://mirrors.sonic.net/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://mirrors.mit.edu/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -577,12 +577,12 @@ libresslgeolocation() { echo "VN server detected" LIBRESSL_MIRRORURL="http://www.ftp.ne.jp/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -592,27 +592,27 @@ libresslgeolocation() { else LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://mirrors.mit.edu/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://mirrors.sonic.net/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="http://mirrors.mit.edu/pub/OpenBSD/LibreSSL" LIBRESSL_LINK="${LIBRESSL_MIRRORURL}/libressl-${LIBRESSL_VERSION}.tar.gz" - curl -sI --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' + curl -4Is --connect-timeout 5 --max-time 5 "$LIBRESSL_LINK" | grep 'HTTP\/' | grep '200' LIBRESSL_CURLCHECK=$? if [[ "$LIBRESSL_CURLCHECK" != '0' ]]; then LIBRESSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/libressl" @@ -632,7 +632,7 @@ if [[ "$PHP_INSTALL" = [yY] ]]; then phpgeolocation - curl -sI --connect-timeout 5 --max-time 5 "${PHP_MIRRORURL}/get/php-${PHP_VERSION}.tar.${PHPEXTSION}/from/this/mirror" | grep 'HTTP\/' | grep '404' + curl -4Is --connect-timeout 5 --max-time 5 "${PHP_MIRRORURL}/get/php-${PHP_VERSION}.tar.${PHPEXTSION}/from/this/mirror" | grep 'HTTP\/' | grep '404' PHPGEO_CURLCHECK=$? if [[ "$PHPGEO_CURLCHECK" = '0' ]]; then PHP_MIRRORURL="http://php.net" @@ -706,8 +706,8 @@ nginxpcretarball() { if [ -s "${PCRELINKFILE}" ]; then cecho "${PCRELINKFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "${PCRELINK}" --tries=3 - # wget -c --progress=bar ${PCRELINKLOCAL} --tries=3 + wget -c4 --progress=bar "${PCRELINK}" --tries=3 + # wget -c4 --progress=bar ${PCRELINKLOCAL} --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${PCRELINKFILE} download failed." $boldgreen @@ -739,8 +739,8 @@ nginxzlibtarball() { if [ -s "${NGX_ZLIBLINKFILE}" ]; then cecho "${NGX_ZLIBLINKFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "${NGX_ZLIBLINK}" --tries=3 - # wget -c --progress=bar ${NGX_ZLIBLINKLOCAL} --tries=3 + wget -c4 --progress=bar "${NGX_ZLIBLINK}" --tries=3 + # wget -c4 --progress=bar ${NGX_ZLIBLINKLOCAL} --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_ZLIBLINKFILE} download failed." $boldgreen @@ -772,7 +772,7 @@ nginxwebdavtarball() { if [ -s "${NGX_WEBDAVLINKFILE}" ]; then cecho "${NGX_WEBDAVLINKFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar --no-check-certificate "${NGX_WEBDAVLINK}" -O "${NGX_WEBDAVLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_WEBDAVLINK}" -O "${NGX_WEBDAVLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_WEBDAVLINKFILE} download failed." $boldgreen @@ -809,8 +809,8 @@ nginxpgspeedtarball() { if [ -s "${NGX_PAGESPEEDGITLINKFILE}" ]; then cecho "${NGX_PAGESPEEDGITLINKFILE} Archive found, skipping download..." $boldgreen else - echo "wget -c --progress=bar --no-check-certificate "${NGX_PAGESPEEDGITLINK}" -O "${NGX_PAGESPEEDGITLINKFILE}" --tries=3" - wget -c --progress=bar --no-check-certificate "${NGX_PAGESPEEDGITLINK}" -O "${NGX_PAGESPEEDGITLINKFILE}" --tries=3 + echo "wget -c4 --progress=bar --no-check-certificate "${NGX_PAGESPEEDGITLINK}" -O "${NGX_PAGESPEEDGITLINKFILE}" --tries=3" + wget -c4 --progress=bar --no-check-certificate "${NGX_PAGESPEEDGITLINK}" -O "${NGX_PAGESPEEDGITLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_PAGESPEEDGITLINKFILE} download failed." $boldgreen @@ -828,8 +828,8 @@ nginxpgspeedtarball() { if [ -s "${NGX_PAGESPEEDLINKFILE}" ]; then cecho "${NGX_PAGESPEEDLINKFILE} Archive found, skipping download..." $boldgreen else - echo "wget -c --progress=bar --no-check-certificate "${NGX_PAGESPEEDLINK}" -O "${NGX_PAGESPEEDLINKFILE}" --tries=3" - wget -c --progress=bar --no-check-certificate "${NGX_PAGESPEEDLINK}" -O "${NGX_PAGESPEEDLINKFILE}" --tries=3 + echo "wget -c4 --progress=bar --no-check-certificate "${NGX_PAGESPEEDLINK}" -O "${NGX_PAGESPEEDLINKFILE}" --tries=3" + wget -c4 --progress=bar --no-check-certificate "${NGX_PAGESPEEDLINK}" -O "${NGX_PAGESPEEDLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_PAGESPEEDLINKFILE} download failed." $boldgreen @@ -887,7 +887,7 @@ fi if [ -s "${NGX_PAGESPEEDPSOLINKLFILE}" ]; then cecho "${NGX_PAGESPEEDPSOLINKLFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar --no-check-certificate "${NGX_PAGESPEEDPSOLINKL}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_PAGESPEEDPSOLINKL}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_PAGESPEEDPSOLINKLFILE} download failed." $boldgreen @@ -923,7 +923,7 @@ ngxmoduletarball() { if [ -s "${NGX_FANCYINDEXLINKFILE}" ]; then cecho "ngx-fancyindex $NGINX_FANCYINDEXVER Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "${NGX_FANCYINDEXLINK}" --tries=3 + wget -c4 --progress=bar "${NGX_FANCYINDEXLINK}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_FANCYINDEXLINKFILE} download failed." $boldgreen @@ -953,7 +953,7 @@ rm -rf "${NGX_FANCYINDEXLINKFILE}" if [ -s "${NGX_FANCYINDEXLINKFILE}" ]; then cecho "ngx-fancyindex $NGINX_FANCYINDEXVER Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "${NGX_FANCYINDEXLINK}" --tries=3 + wget -c4 --progress=bar "${NGX_FANCYINDEXLINK}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_FANCYINDEXLINKFILE} download failed." $boldgreen @@ -1035,7 +1035,7 @@ echo "" if [ -s "${NGX_CONCATLINKFILE}" ]; then cecho "${NGX_CONCATLINKFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar --no-check-certificate "${NGX_CONCATLINK}" -O "${NGX_CONCATLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_CONCATLINK}" -O "${NGX_CONCATLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_CONCATLINKFILE} download failed." $boldgreen @@ -1063,7 +1063,7 @@ echo "" if [ -s "${NGX_HEADERSMORELINKFILE}" ]; then cecho "${NGX_HEADERSMORELINKFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar --no-check-certificate "${NGX_HEADERSMORELINK}" -O "${NGX_HEADERSMORELINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_HEADERSMORELINK}" -O "${NGX_HEADERSMORELINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_HEADERSMORELINKFILE} download failed." $boldgreen @@ -1091,7 +1091,7 @@ echo "" if [ -s "${NGX_STICKYLINKFILE}" ]; then cecho "${NGX_STICKYLINKFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "${NGX_STICKYLINK}" -O "${NGX_STICKYLINKFILE}" --tries=3 + wget -c4 --progress=bar "${NGX_STICKYLINK}" -O "${NGX_STICKYLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_STICKYLINKFILE} download failed." $boldgreen @@ -1120,7 +1120,7 @@ echo "" if [ -s "${NGX_UPSTREAMCHECKLINKFILE}" ]; then cecho "${NGX_UPSTREAMCHECKLINKFILE} Archive found, skipping download..." $boldgreen else - wget -c --progress=bar --no-check-certificate "${NGX_UPSTREAMCHECKLINK}" -O "${NGX_UPSTREAMCHECKLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_UPSTREAMCHECKLINK}" -O "${NGX_UPSTREAMCHECKLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_UPSTREAMCHECKLINKFILE} download failed." $boldgreen @@ -1188,7 +1188,7 @@ if [ -s "${NGX_MEMCLINKFILE}" ]; then cecho "${NGX_MEMCLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_MEMCLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_MEMCLINK}" -O "${NGX_MEMCLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_MEMCLINK}" -O "${NGX_MEMCLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_MEMCLINKFILE} download failed." $boldgreen @@ -1216,7 +1216,7 @@ if [ -s "${NGX_SRCACHELINKFILE}" ]; then cecho "${NGX_SRCACHELINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_SRCACHELINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_SRCACHELINK}" -O "${NGX_SRCACHELINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_SRCACHELINK}" -O "${NGX_SRCACHELINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_SRCACHELINKFILE} download failed." $boldgreen @@ -1244,7 +1244,7 @@ if [ -s "${NGX_DEVELKITLINKFILE}" ]; then cecho "${NGX_DEVELKITLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_DEVELKITLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_DEVELKITLINK}" -O "${NGX_DEVELKITLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_DEVELKITLINK}" -O "${NGX_DEVELKITLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_DEVELKITLINKFILE} download failed." $boldgreen @@ -1272,7 +1272,7 @@ if [ -s "${NGX_SETMISCLINKFILE}" ]; then cecho "${NGX_SETMISCLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_SETMISCLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_SETMISCLINK}" -O "${NGX_SETMISCLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_SETMISCLINK}" -O "${NGX_SETMISCLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_SETMISCLINKFILE} download failed." $boldgreen @@ -1300,7 +1300,7 @@ if [ -s "${NGX_ECHOLINKFILE}" ]; then cecho "${NGX_ECHOLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_ECHOLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_ECHOLINK}" -O "${NGX_ECHOLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_ECHOLINK}" -O "${NGX_ECHOLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_ECHOLINKFILE} download failed." $boldgreen @@ -1328,7 +1328,7 @@ if [ -s "${NGX_REDISLINKFILE}" ]; then cecho "${NGX_REDISLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_REDISLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_REDISLINK}" -O "${NGX_REDISLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_REDISLINK}" -O "${NGX_REDISLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_REDISLINKFILE} download failed." $boldgreen @@ -1359,7 +1359,7 @@ if [ -s "${NGX_LUANGINXLINKFILE}" ]; then cecho "${NGX_LUANGINXLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUANGINXLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUANGINXLINK}" -O "${NGX_LUANGINXLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUANGINXLINK}" -O "${NGX_LUANGINXLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUANGINXLINKFILE} download failed." $boldgreen @@ -1387,7 +1387,7 @@ if [ -s "${NGX_LUAGITLINKFILE}" ]; then cecho "${NGX_LUAGITLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAGITLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAGITLINK}" -O "${NGX_LUAGITLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAGITLINK}" -O "${NGX_LUAGITLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAGITLINKFILE} download failed." $boldgreen @@ -1415,7 +1415,7 @@ if [ -s "${NGX_LUAMEMCACHEDLINKFILE}" ]; then cecho "${NGX_LUAMEMCACHEDLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAMEMCACHEDLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAMEMCACHEDLINK}" -O "${NGX_LUAMEMCACHEDLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAMEMCACHEDLINK}" -O "${NGX_LUAMEMCACHEDLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAMEMCACHEDLINKFILE} download failed." $boldgreen @@ -1443,7 +1443,7 @@ if [ -s "${NGX_LUAMYSQLLINKFILE}" ]; then cecho "${NGX_LUAMYSQLLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAMYSQLLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAMYSQLLINK}" -O "${NGX_LUAMYSQLLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAMYSQLLINK}" -O "${NGX_LUAMYSQLLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAMYSQLLINKFILE} download failed." $boldgreen @@ -1471,7 +1471,7 @@ if [ -s "${NGX_LUAREDISLINKFILE}" ]; then cecho "${NGX_LUAREDISLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAREDISLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAREDISLINK}" -O "${NGX_LUAREDISLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAREDISLINK}" -O "${NGX_LUAREDISLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAREDISLINKFILE} download failed." $boldgreen @@ -1499,7 +1499,7 @@ if [ -s "${NGX_LUADNSLINKFILE}" ]; then cecho "${NGX_LUADNSLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUADNSLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUADNSLINK}" -O "${NGX_LUADNSLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUADNSLINK}" -O "${NGX_LUADNSLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUADNSLINKFILE} download failed." $boldgreen @@ -1527,7 +1527,7 @@ if [ -s "${NGX_LUAUPLOADLINKFILE}" ]; then cecho "${NGX_LUAUPLOADLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAUPLOADLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAUPLOADLINK}" -O "${NGX_LUAUPLOADLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAUPLOADLINK}" -O "${NGX_LUAUPLOADLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAUPLOADLINKFILE} download failed." $boldgreen @@ -1555,7 +1555,7 @@ if [ -s "${NGX_LUAWEBSOCKETLINKFILE}" ]; then cecho "${NGX_LUAWEBSOCKETLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAWEBSOCKETLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAWEBSOCKETLINK}" -O "${NGX_LUAWEBSOCKETLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAWEBSOCKETLINK}" -O "${NGX_LUAWEBSOCKETLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAWEBSOCKETLINKFILE} download failed." $boldgreen @@ -1583,7 +1583,7 @@ if [ -s "${NGX_LUALOCKLINKFILE}" ]; then cecho "${NGX_LUALOCKLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUALOCKLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUALOCKLINK}" -O "${NGX_LUALOCKLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUALOCKLINK}" -O "${NGX_LUALOCKLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUALOCKLINKFILE} download failed." $boldgreen @@ -1611,7 +1611,7 @@ if [ -s "${NGX_LUASTRINGLINKFILE}" ]; then cecho "${NGX_LUASTRINGLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUASTRINGLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUASTRINGLINK}" -O "${NGX_LUASTRINGLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUASTRINGLINK}" -O "${NGX_LUASTRINGLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUASTRINGLINKFILE} download failed." $boldgreen @@ -1639,7 +1639,7 @@ if [ -s "${NGX_LUAREDISPARSERLINKFILE}" ]; then cecho "${NGX_LUAREDISPARSERLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAREDISPARSERLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAREDISPARSERLINK}" -O "${NGX_LUAREDISPARSERLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAREDISPARSERLINK}" -O "${NGX_LUAREDISPARSERLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAREDISPARSERLINKFILE} download failed." $boldgreen @@ -1667,7 +1667,7 @@ if [ -s "${NGX_LUAUPSTREAMCHECKLINKFILE}" ]; then cecho "${NGX_LUAUPSTREAMCHECKLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAUPSTREAMCHECKLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAUPSTREAMCHECKLINK}" -O "${NGX_LUAUPSTREAMCHECKLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAUPSTREAMCHECKLINK}" -O "${NGX_LUAUPSTREAMCHECKLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAUPSTREAMCHECKLINKFILE} download failed." $boldgreen @@ -1695,7 +1695,7 @@ if [ -s "${NGX_LUALRUCACHELINKFILE}" ]; then cecho "${NGX_LUALRUCACHELINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUALRUCACHELINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUALRUCACHELINK}" -O "${NGX_LUALRUCACHELINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUALRUCACHELINK}" -O "${NGX_LUALRUCACHELINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUALRUCACHELINKFILE} download failed." $boldgreen @@ -1723,7 +1723,7 @@ if [ -s "${NGX_LUARESTYCORELINKFILE}" ]; then cecho "${NGX_LUARESTYCORELINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUARESTYCORELINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUARESTYCORELINK}" -O "${NGX_LUARESTYCORELINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUARESTYCORELINK}" -O "${NGX_LUARESTYCORELINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUARESTYCORELINKFILE} download failed." $boldgreen @@ -1751,7 +1751,7 @@ if [ -s "${NGX_LUAUPSTREAMLINKFILE}" ]; then cecho "${NGX_LUAUPSTREAMLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAUPSTREAMLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAUPSTREAMLINK}" -O "${NGX_LUAUPSTREAMLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAUPSTREAMLINK}" -O "${NGX_LUAUPSTREAMLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAUPSTREAMLINKFILE} download failed." $boldgreen @@ -1779,7 +1779,7 @@ if [ -s "${NGX_LUALOGGERSOCKETLINKFILE}" ]; then cecho "${NGX_LUALOGGERSOCKETLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUALOGGERSOCKETLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUALOGGERSOCKETLINK}" -O "${NGX_LUALOGGERSOCKETLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUALOGGERSOCKETLINK}" -O "${NGX_LUALOGGERSOCKETLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUALOGGERSOCKETLINKFILE} download failed." $boldgreen @@ -1807,7 +1807,7 @@ if [ -s "${NGX_LUACOOKIELINKFILE}" ]; then cecho "${NGX_LUACOOKIELINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUACOOKIELINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUACOOKIELINK}" -O "${NGX_LUACOOKIELINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUACOOKIELINK}" -O "${NGX_LUACOOKIELINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUACOOKIELINKFILE} download failed." $boldgreen @@ -1835,7 +1835,7 @@ if [ -s "${NGX_LUAUPSTREAMCACHELINKFILE}" ]; then cecho "${NGX_LUAUPSTREAMCACHELINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUAUPSTREAMCACHELINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUAUPSTREAMCACHELINK}" -O "${NGX_LUAUPSTREAMCACHELINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUAUPSTREAMCACHELINK}" -O "${NGX_LUAUPSTREAMCACHELINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUAUPSTREAMCACHELINKFILE} download failed." $boldgreen @@ -1863,7 +1863,7 @@ if [ -s "${NGX_LUACJSONLINKFILE}" ]; then cecho "${NGX_LUACJSONLINKFILE} Archive found, skipping download..." $boldgreen else cecho "Error: ${NGX_LUACJSONLINKFILE} not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate "${NGX_LUACJSONLINK}" -O "${NGX_LUACJSONLINKFILE}" --tries=3 + wget -c4 --progress=bar --no-check-certificate "${NGX_LUACJSONLINK}" -O "${NGX_LUACJSONLINKFILE}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: ${NGX_LUACJSONLINKFILE} download failed." $boldgreen @@ -2835,7 +2835,7 @@ fi ############################################### openssldownload() { -curl -sI --connect-timeout 5 --max-time 5 "$OPENSSL_LINK" | grep 'HTTP\/' | grep '200' +curl -4Is --connect-timeout 5 --max-time 5 "$OPENSSL_LINK" | grep 'HTTP\/' | grep '200' OPENSSL_CURLCHECK=$? if [[ "$OPENSSL_CURLCHECK" != '0' ]]; then OPENSSL_MIRRORURL="${LOCALCENTMINMOD_MIRROR}/centminmodparts/openssl" @@ -2851,8 +2851,8 @@ if [[ "$CENTOSVER" > 5 && "$CENTOSVER" < 6 ]]; then cecho "openssl ${OPENSSL_VERSION} found, skipping download..." $boldgreen else if [[ "$CENTOS_SIX" = '6' ]]; then - echo "wget -cnv -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY"" - wget -cnv -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY" + echo "wget -cnv4 -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY"" + wget -cnv4 -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY" ERROR=$? echo $ERROR else @@ -2894,8 +2894,8 @@ if [[ "$CENTOSVER" > 6 ]]; then cecho "openssl ${OPENSSL_VERSION} found, skipping download..." $boldgreen else if [[ "$CENTOS_SIX" = '6' ]]; then - echo "wget -cnv -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY"" - wget -cnv -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY" + echo "wget -cnv4 -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY"" + wget -cnv4 -4 --progress=bar "${OPENSSL_LINK}" "$WGETRETRY" ERROR=$? echo $ERROR else @@ -3134,7 +3134,7 @@ if [ -s "${PYTHON_SETUPTOOLSLINKFILE}" ]; then cecho "${PYTHON_SETUPTOOLSLINKFILE} found, skipping download..." $boldgreen else echo "Error: ${PYTHON_SETUPTOOLSLINKFILE} not found !!! Downloading now......" - wget -c --no-check-certificate "${PYTHON_SETUPTOOLSLINK}" --tries=3 + wget -c4 --no-check-certificate "${PYTHON_SETUPTOOLSLINK}" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "${PYTHON_SETUPTOOLSLINKFILE} download failed." $boldgreen diff --git a/inc/ffmpeginstall.inc b/inc/ffmpeginstall.inc index c1e5b52a8..d4f0c8783 100644 --- a/inc/ffmpeginstall.inc +++ b/inc/ffmpeginstall.inc @@ -134,7 +134,7 @@ fi FFMPEGGITLINK='https://github.com/tony2001/ffmpeg-php' # fallback mirror if github down, use gitlab mirror -curl -sI --connect-timeout 5 --max-time 5 $FFMPEGGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 +curl -4Is --connect-timeout 5 --max-time 5 $FFMPEGGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 FFMPEGGIT_CURLCHECK=$? if [[ "$FFMPEGGIT_CURLCHECK" != '0' ]]; then FFMPEGGITLINK='https://gitlab.com/centminmod-github-mirror/ffmpeg-php' diff --git a/inc/geoip.inc b/inc/geoip.inc index 0c11393b1..902f6b741 100644 --- a/inc/geoip.inc +++ b/inc/geoip.inc @@ -26,7 +26,7 @@ if [[ -d /usr/share/GeoIP ]]; then # fallback mirror if official php svn repo is down, use local centmin mod mirror # each php recompile will check again so if php svn repo is backup, the source # code will switch back to official php svn repo again - curl -sI --connect-timeout 5 --max-time 5 http://svn.php.net/repository/pecl/geoip/trunk/ | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 http://svn.php.net/repository/pecl/geoip/trunk/ | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 SVNGEOIP_CURLCHECK=$? if [[ "$SVNGEOIP_CURLCHECK" != '0' ]]; then if [ -d geoip ]; then @@ -89,11 +89,11 @@ fi cd $DIR_TMP cecho "GeoLiteCity database download ..." $boldyellow - wget -cnv http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -O /usr/share/GeoIP/GeoLiteCity.dat.gz + wget -cnv4 http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -O /usr/share/GeoIP/GeoLiteCity.dat.gz gzip -d -f /usr/share/GeoIP/GeoLiteCity.dat.gz cp -a /usr/share/GeoIP/GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat - # wget -cnv http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O /usr/share/GeoIP/GeoIP.dat.gz + # wget -cnv4 http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O /usr/share/GeoIP/GeoIP.dat.gz # gzip -df /usr/share/GeoIP/GeoIP.dat.gz } diff --git a/inc/igbinary.inc b/inc/igbinary.inc index cb36825d6..f92ea7438 100644 --- a/inc/igbinary.inc +++ b/inc/igbinary.inc @@ -14,7 +14,7 @@ if [ "$IGBINARYGIT" == 'y' ]; then IGBINARYSEVEN_LINK='https://github.com/igbinary/igbinary' # fallback mirror if official github is down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 $IGBINARYSEVEN_LINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 $IGBINARYSEVEN_LINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 IGBINARYSEVEN_CURLCHECK=$? if [[ "$IGBINARYSEVEN_CURLCHECK" != '0' ]]; then IGBINARYSEVEN_LINK='https://gitlab.com/centminmod-github-mirror/igbinary.git' @@ -56,7 +56,7 @@ if [ "$IGBINARYGIT" == 'y' ]; then if [ -s igbinary-igbinary-1.1.2-dev.tar.gz ]; then cecho "igbinary-igbinary-1.1.2-dev.tar.gz Archive found, skipping download..." $boldgreen else - wget -c --progress=bar --no-check-certificate https://github.com/igbinary/igbinary/tarball/master -O igbinary-igbinary-1.1.2-dev.tar.gz --tries=3 + wget -c4 --progress=bar --no-check-certificate https://github.com/igbinary/igbinary/tarball/master -O igbinary-igbinary-1.1.2-dev.tar.gz --tries=3 fi tar -xzvf igbinary-igbinary-1.1.2-dev.tar.gz diff --git a/inc/imagick_install.inc b/inc/imagick_install.inc index 2644a63fe..e503da645 100644 --- a/inc/imagick_install.inc +++ b/inc/imagick_install.inc @@ -139,7 +139,7 @@ echo $PHPSEVEN_CHECKVER if [[ "$PHPMUVER" = '7.0' || "$PHPMUVER" = '7.1' || "$PHPMUVER" = '7.2' || "$PHPMUVER" = 'NGDEBUG' || "$PHPSEVEN_CHECKVER" = '0' ]] && [[ "$(echo $IMAGICKPHP_VER | cut -d . -f1,2 | sed -e 's|\.||')" -le '33' ]]; then IMAGICKGITLINK='https://github.com/mkoppanen/imagick' # fallback mirror if official github is down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 $IMAGICKGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 $IMAGICKGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 IMAGICKGITCURLCHECK=$? if [[ "$IMAGICKGITCURLCHECK" != '0' ]]; then IMAGICKGITLINK='https://gitlab.com/centminmod-github-mirror/imagick.git' diff --git a/inc/memcached_install.inc b/inc/memcached_install.inc index 220245040..34b3f6c3a 100644 --- a/inc/memcached_install.inc +++ b/inc/memcached_install.inc @@ -190,7 +190,7 @@ if [[ "$FPMRPM_LIBEVENT" = [yY] && "$(uname -m)" = 'x86_64' ]]; then if [ -s libevent-2.0.21-1.x86_64.rpm ]; then cecho "libevent-2.0.21-1.x86_64.rpm found, skipping download..." $boldgreen else - wget -cnv https://centminmod.com/centminmodparts/customrpms/fpm/libevent-2.0.21-1.x86_64.rpm --tries=3 + wget -cnv4 https://centminmod.com/centminmodparts/customrpms/fpm/libevent-2.0.21-1.x86_64.rpm --tries=3 rpm -Uvh libevent-2.0.21-1.x86_64.rpm fi else @@ -219,7 +219,7 @@ if [[ "$FPMRPM_MEMCACHED" = [yY] && "$(uname -m)" = 'x86_64' ]]; then if [ -s memcached-1.4.18-1.x86_64.rpm ]; then cecho "memcached-1.4.18-1.x86_64.rpm found, skipping download..." $boldgreen else - wget -cnv https://centminmod.com/centminmodparts/customrpms/fpm/memcached-1.4.18-1.x86_64.rpm --tries=3 + wget -cnv4 https://centminmod.com/centminmodparts/customrpms/fpm/memcached-1.4.18-1.x86_64.rpm --tries=3 rpm -Uvh memcached-1.4.18-1.x86_64.rpm cd "${DIR_TMP}/memcached-${MEMCACHED_VERSION}" cp -f "$DIR_TMP/memcached-${MEMCACHED_VERSION}/scripts/memcached-tool" /usr/local/bin diff --git a/inc/nginx_modules.inc b/inc/nginx_modules.inc index 520604f39..ab0b607b7 100644 --- a/inc/nginx_modules.inc +++ b/inc/nginx_modules.inc @@ -6,7 +6,7 @@ function funct_nginxmodules { if [ -s ngx-fancyindex-0.3.1.tar.gz ]; then cecho "ngx-fancyindex 0.3.1 Archive found, skipping download..." $boldgreen else - wget -c --progress=bar https://centminmod.com/centminmodparts/nginx/modules/ngx-fancyindex-0.3.1.tar.gz --tries=3 + wget -c4 --progress=bar https://centminmod.com/centminmodparts/nginx/modules/ngx-fancyindex-0.3.1.tar.gz --tries=3 fi tar zvxf ngx-fancyindex-0.3.1.tar.gz @@ -17,7 +17,7 @@ rm -rf ngx-fancyindex-0.3.1.tar.gz if [ -s ngx-fancyindex-0.3.1.tar.gz ]; then cecho "ngx-fancyindex 0.3.1 Archive found, skipping download..." $boldgreen else - wget -c --progress=bar https://centminmod.com/centminmodparts/nginx/modules/ngx-fancyindex-0.3.1.tar.gz --tries=3 + wget -c4 --progress=bar https://centminmod.com/centminmodparts/nginx/modules/ngx-fancyindex-0.3.1.tar.gz --tries=3 fi tar zvxf ngx-fancyindex-0.3.1.tar.gz diff --git a/inc/nginx_modules_openresty.inc b/inc/nginx_modules_openresty.inc index 42e0d43c4..3a067fe50 100644 --- a/inc/nginx_modules_openresty.inc +++ b/inc/nginx_modules_openresty.inc @@ -6,7 +6,7 @@ function funct_nginxmodules_openresty { if [ -s ngx-fancyindex-0.3.1.tar.gz ]; then cecho "ngx-fancyindex 0.3.1 Archive found, skipping download..." $boldgreen else - wget -c --progress=bar http://gitorious.org/ngx-fancyindex/ngx-fancyindex/archive-tarball/v0.3.1 -O ngx-fancyindex-0.3.1.tar.gz --tries=3 + wget -c4 --progress=bar http://gitorious.org/ngx-fancyindex/ngx-fancyindex/archive-tarball/v0.3.1 -O ngx-fancyindex-0.3.1.tar.gz --tries=3 fi tar zvxf ngx-fancyindex-0.3.1.tar.gz @@ -17,7 +17,7 @@ rm -rf ngx-fancyindex-0.3.1.tar.gz if [ -s ngx-fancyindex-0.3.1.tar.gz ]; then cecho "ngx-fancyindex 0.3.1 Archive found, skipping download..." $boldgreen else - wget -c --progress=bar http://gitorious.org/ngx-fancyindex/ngx-fancyindex/archive-tarball/v0.3.1 -O ngx-fancyindex-0.3.1.tar.gz --tries=3 + wget -c4 --progress=bar http://gitorious.org/ngx-fancyindex/ngx-fancyindex/archive-tarball/v0.3.1 -O ngx-fancyindex-0.3.1.tar.gz --tries=3 fi tar zvxf ngx-fancyindex-0.3.1.tar.gz @@ -44,7 +44,7 @@ if [ -s memc-nginx-module_v0.13rc3.tar.gz ]; then cecho "memc-nginx-module_v0.13rc3.tar.gz Archive found, skipping download..." $boldgreen else cecho "Error: memc-nginx-module_v0.13rc3.tar.gz not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate https://github.com/agentzh/memc-nginx-module/tarball/v0.13rc3 -O memc-nginx-module_v0.13rc3.tar.gz --tries=3 + wget -c4 --progress=bar --no-check-certificate https://github.com/agentzh/memc-nginx-module/tarball/v0.13rc3 -O memc-nginx-module_v0.13rc3.tar.gz --tries=3 fi tar xvzf memc-nginx-module_v0.13rc3.tar.gz @@ -53,7 +53,7 @@ if [ -s srcache-nginx-module_v0.13rc6.tar.gz ]; then cecho "srcache-nginx-module_v0.13rc6.tar.gz Archive found, skipping download..." $boldgreen else cecho "Error: srcache-nginx-module_v0.13rc6.tar.gz not found!!! Downloading now......" - wget -c --progress=bar --no-check-certificate https://github.com/agentzh/srcache-nginx-module/tarball/v0.13rc6 -O srcache-nginx-module_v0.13rc6.tar.gz --tries=3 + wget -c4 --progress=bar --no-check-certificate https://github.com/agentzh/srcache-nginx-module/tarball/v0.13rc6 -O srcache-nginx-module_v0.13rc6.tar.gz --tries=3 fi tar xvzf srcache-nginx-module_v0.13rc6.tar.gz @@ -62,7 +62,7 @@ fi # cecho "ngx_auto_lib.tar.gz Archive found, skipping download..." $boldgreen # else # cecho "Error: ngx_auto_lib.tar.gz not found!!! Downloading now......" -# wget -c --progress=bar --no-check-certificate https://github.com/simpl/ngx_auto_lib/tarball/master -O ngx_auto_lib.tar.gz --tries=3 +# wget -c4 --progress=bar --no-check-certificate https://github.com/simpl/ngx_auto_lib/tarball/master -O ngx_auto_lib.tar.gz --tries=3 # fi # tar xvzf ngx_auto_lib.tar.gz diff --git a/inc/nginx_patch.inc b/inc/nginx_patch.inc index cf110246a..51ab8b35b 100644 --- a/inc/nginx_patch.inc +++ b/inc/nginx_patch.inc @@ -14,7 +14,7 @@ ngx_hpack_patch() { cecho "patching nginx http/2 full HPACK encoding support" $boldyellow cecho "https://github.com/cloudflare/sslconfig/raw/hpack_1.13.1/patches/nginx_1.13.1_http2_hpack.patch" $boldyellow rm -rf nginx_1.13.1_http2_hpack.patch - wget -cnv https://github.com/cloudflare/sslconfig/raw/hpack_1.13.1/patches/nginx_1.13.1_http2_hpack.patch + wget -cnv4 https://github.com/cloudflare/sslconfig/raw/hpack_1.13.1/patches/nginx_1.13.1_http2_hpack.patch cecho "patch -p1 < nginx_1.13.1_http2_hpack.patch" $boldyellow patch -p1 < nginx_1.13.1_http2_hpack.patch echo @@ -26,7 +26,7 @@ ngx_hpack_patch() { cecho "patching nginx http/2 full HPACK encoding support" $boldyellow cecho "https://github.com/cloudflare/sslconfig/raw/hpack_1.13.1/patches/nginx_1.13.1_http2_hpack.patch" $boldyellow rm -rf nginx_1.13.1_http2_hpack.patch - wget -cnv https://github.com/cloudflare/sslconfig/raw/hpack_1.13.1/patches/nginx_1.13.1_http2_hpack.patch + wget -cnv4 https://github.com/cloudflare/sslconfig/raw/hpack_1.13.1/patches/nginx_1.13.1_http2_hpack.patch cecho "patch -p1 < nginx_1.13.1_http2_hpack.patch" $boldyellow patch -p1 < nginx_1.13.1_http2_hpack.patch echo @@ -107,7 +107,7 @@ luanginx_patch() { if [ -d "${DIR_TMP}/${NGX_LUANGINXDIR}/src" ]; then pushd "${DIR_TMP}/${NGX_LUANGINXDIR}/src" rm -rf ngx_http_lua_headers.c - wget -cnv https://gist.githubusercontent.com/centminmod/48a61dcbcb6240fa1b52843be8290573/raw/ngx_http_lua_headers.c + wget -cnv4 https://gist.githubusercontent.com/centminmod/48a61dcbcb6240fa1b52843be8290573/raw/ngx_http_lua_headers.c ls -lah echo echo "patching lua nginx module for nginx 1.11.11+" @@ -147,7 +147,7 @@ echonginx_patch() { if [ -d "${DIR_TMP}/${ECHODIR}/src" ]; then pushd "${DIR_TMP}/${ECHODIR}/src" rm -rf ngx_http_echo_request_info.c - wget -cnv https://gist.githubusercontent.com/centminmod/c2519f3cfdeff90196a13a3188ef0cfa/raw/ngx_http_echo_request_info.c + wget -cnv4 https://gist.githubusercontent.com/centminmod/c2519f3cfdeff90196a13a3188ef0cfa/raw/ngx_http_echo_request_info.c ls -lah echo echo "patching echo nginx module for nginx 1.11.11+" @@ -250,8 +250,8 @@ patchnginx() { echo cecho "patching nginx for http/2 support" $boldyellow echo - cecho "wget http://nginx.org/patches/http2/patch.http2.txt" $boldyellow - wget http://nginx.org/patches/http2/patch.http2.txt + cecho "wget -4 http://nginx.org/patches/http2/patch.http2.txt" $boldyellow + wget -4 http://nginx.org/patches/http2/patch.http2.txt cecho "patch -p1 < patch.http2.txt" $boldyellow patch -p1 < patch.http2.txt @@ -275,12 +275,12 @@ patchnginx() { rm -rf "${NGINXSPDYPATCHED_NAME}" NGINXTLSPATCHLINK="https://raw.githubusercontent.com/felixbuenemann/sslconfig/updated-nginx-1.9.15-spdy-patch/patches/${NGINXSPDYPATCHED_NAME}" # fallback mirror if github down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 "${NGINXTLSPATCHLINK}" | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 "${NGINXTLSPATCHLINK}" | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 NGINXTLSPATCH_CURLCHECK=$? if [[ "$NGINXTLSPATCH_CURLCHECK" != '0' ]]; then NGINXTLSPATCHLINK="https://gitlab.com/centminmod-github-mirror/sslconfig-felix-group/raw/updated-nginx-1.9.15-spdy-patch/patches/${NGINXSPDYPATCHED_NAME}" fi - wget -cnv --no-check-certificate "$NGINXTLSPATCHLINK" + wget -cnv4 --no-check-certificate "$NGINXTLSPATCHLINK" if [[ -f "${NGINXSPDYPATCHED_NAME}" && ! "$(grep 'ngx_http_spdy_filter' auto/modules)" ]]; then patch -p1 < "${NGINXSPDYPATCHED_NAME}" fi @@ -313,12 +313,12 @@ patchnginx() { if [[ "$DETECT_NGXVER" -le '1011004' && "$DETECT_NGXVER" -ge '1011000' ]]; then NGINXTLSPATCHLINK="https://raw.githubusercontent.com/cloudflare/sslconfig/master/patches/${NGINXTLSPATCH_NAME}" # fallback mirror if github down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 "${NGINXTLSPATCHLINK}" | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 "${NGINXTLSPATCHLINK}" | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 NGINXTLSPATCH_CURLCHECK=$? if [[ "$NGINXTLSPATCH_CURLCHECK" != '0' ]]; then NGINXTLSPATCHLINK="https://gitlab.com/centminmod-github-mirror/sslconfig/raw/master/patches/${NGINXTLSPATCH_NAME}" fi - wget -cnv --no-check-certificate "$NGINXTLSPATCHLINK" + wget -cnv4 --no-check-certificate "$NGINXTLSPATCHLINK" if [[ -f "${NGINXTLSPATCH_NAME}" && ! "$(grep 'dyn_rec.threshold' src/event/ngx_event_openssl.c)" ]]; then echo "patch -p1 < "${NGINXTLSPATCH_NAME}"" patch -p1 < "${NGINXTLSPATCH_NAME}" @@ -370,7 +370,7 @@ luaopensslpatch() { OPENRESTYLUAPATCHLINK='https://github.com/openresty/openresty/raw/master/patches/nginx-1.9.7-ssl_cert_cb_yield.patch' # fallback mirror if github down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 $OPENRESTYLUAPATCHLINK | grep 'HTTP\/' | egrep '200|302' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 $OPENRESTYLUAPATCHLINK | grep 'HTTP\/' | egrep '200|302' >/dev/null 2>&1 OPENRESTYLUAPATCH_CURLCHECK=$? if [[ "$OPENRESTYLUAPATCH_CURLCHECK" != '0' ]]; then OPENRESTYLUAPATCHLINK='https://gitlab.com/centminmod-github-mirror/openresty/raw/master/patches/nginx-1.9.7-ssl_cert_cb_yield.patch' diff --git a/inc/nginx_upgrade.inc b/inc/nginx_upgrade.inc index 6ca24d939..b7c9d2562 100644 --- a/inc/nginx_upgrade.inc +++ b/inc/nginx_upgrade.inc @@ -378,7 +378,7 @@ else # enter, ngxver will be empty so should fall back to # the nginx version defined by NGINX_VERSION variable if [ -z "$ngver" ]; then - LASTEST_NGINXVERS=$(curl -sL https://nginx.org/en/download.html 2>&1 | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1) + LASTEST_NGINXVERS=$(curl -4sL https://nginx.org/en/download.html 2>&1 | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1) ngver="$LASTEST_NGINXVERS" fi @@ -781,7 +781,7 @@ elif [[ "$NGINX_ZERODT" = [yY] ]]; then echo "nginx master id: $GETNGXPID" echo echo "---------------------------------------------------------------------------" - curl -s localhost/nginx_status + curl -s -4 localhost/nginx_status echo "---------------------------------------------------------------------------" ps axw -o pid,ppid,user,%cpu,vsz,wchan,command | egrep '(nginx: |PID)' | egrep -v '(nginx_upgrade|amplify|php-fpm|hhvm)' | egrep -v grep echo "---------------------------------------------------------------------------" @@ -893,7 +893,7 @@ fi echo "---------------------------------------------------------------------------" echo "nginx master id: $GETNGXPID" echo "---------------------------------------------------------------------------" - curl -s localhost/nginx_status + curl -s -4 localhost/nginx_status echo "---------------------------------------------------------------------------" echo "kill -USR2 $GETNGXPID" kill -USR2 $GETNGXPID @@ -902,14 +902,14 @@ fi echo ls -lah /usr/local/sbin/nginx* echo "---------------------------------------------------------------------------" - curl -s localhost/nginx_status + curl -s -4 localhost/nginx_status echo "---------------------------------------------------------------------------" echo "kill -WINCH $GETNGXPID" kill -WINCH $GETNGXPID sleep 3 ps axw -o pid,ppid,user,%cpu,vsz,wchan,command | egrep '(nginx: |PID)' | egrep -v '(nginx_upgrade|amplify|php-fpm|hhvm)' | egrep -v grep echo "---------------------------------------------------------------------------" - curl -s localhost/nginx_status + curl -s -4 localhost/nginx_status echo "---------------------------------------------------------------------------" echo " waiting for old nginx worker processes to exit..." while [[ "$(ps awx -o ppid,command | grep 'nginx: worker' | egrep -v '(nginx_upgrade|amplify|php-fpm|hhvm)' | egrep -v grep | awk '{print $1}' | uniq)" = "$GETNGXPPID" ]]; do @@ -922,7 +922,7 @@ fi sleep 3 ps axw -o pid,ppid,user,%cpu,vsz,wchan,command | egrep '(nginx: |PID)' | egrep -v '(nginx_upgrade|amplify|php-fpm|hhvm)' | egrep -v grep echo "---------------------------------------------------------------------------" - curl -s localhost/nginx_status + curl -s -4 localhost/nginx_status echo "---------------------------------------------------------------------------" fi diff --git a/inc/openssl_install.inc b/inc/openssl_install.inc index 856fd13b3..9ef674c1d 100644 --- a/inc/openssl_install.inc +++ b/inc/openssl_install.inc @@ -11,7 +11,7 @@ if [[ "${OPENSSL_VERSION}" = '1.0.1g' ]]; then echo "######################################################################" pushd ssl rm -rf releasebuffer.patch - wget -cnv https://centminmod.com/centminmodparts/openssl/patches/releasebuffer.patch + wget -cnv4 https://centminmod.com/centminmodparts/openssl/patches/releasebuffer.patch patch < releasebuffer.patch popd echo "######################################################################" @@ -60,7 +60,7 @@ if [[ "$CLOUDFLARE_PATCHSSL" = [yY] && "$DETECTOPENSSL_ONEZERO" = '1.0' ]]; then fi # fallback mirror if github down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 "${OPENSSLCFPATCHLINK}" | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 "${OPENSSLCFPATCHLINK}" | grep 'HTTP\/' | egrep '200' >/dev/null 2>&1 OPENSSLCFPATCH_CURLCHECK=$? if [[ "$OPENSSLCFPATCH_CURLCHECK" != '0' ]]; then if [[ "$AVXTWO_CHECK" = '0' ]]; then @@ -69,13 +69,13 @@ if [[ "$CLOUDFLARE_PATCHSSL" = [yY] && "$DETECTOPENSSL_ONEZERO" = '1.0' ]]; then OPENSSLCFPATCHLINK="https://gitlab.com/centminmod-github-mirror/sslconfig/raw/master/patches/${OPESSLCFPATCH_NAME}" fi fi - wget -cnv --no-check-certificate "$OPENSSLCFPATCHLINK" + wget -cnv4 --no-check-certificate "$OPENSSLCFPATCHLINK" if [ ! -f crypto/chacha20_poly1305/chacha20.c ]; then patch -p1 < "${OPESSLCFPATCH_NAME}" fi # rm -rf openssl__chacha20_poly1305_cf.patch - # wget -cnv --no-check-certificate https://raw.githubusercontent.com/cloudflare/sslconfig/master/patches/openssl__chacha20_poly1305_cf.patch + # wget -cnv4 --no-check-certificate https://raw.githubusercontent.com/cloudflare/sslconfig/master/patches/openssl__chacha20_poly1305_cf.patch # patch -p1 < openssl__chacha20_poly1305_cf.patch if [ -f crypto/chacha20_poly1305/chacha20.c ]; then # check /svr-setup/openssl-1.0.2g/crypto/chacha20_poly1305/chacha20.c exists diff --git a/inc/php_upgrade.inc b/inc/php_upgrade.inc index 8de492521..f01cc8729 100644 --- a/inc/php_upgrade.inc +++ b/inc/php_upgrade.inc @@ -316,7 +316,7 @@ fi figlet -ckf standard "PHP: Download" fi - curl -sI --connect-timeout 5 --max-time 5 "${PHP_MIRRORURL}/get/php-${phpver}.tar.${PHPEXTSION}/from/this/mirror" | grep 'HTTP\/' | grep '404' + curl -4Is --connect-timeout 5 --max-time 5 "${PHP_MIRRORURL}/get/php-${phpver}.tar.${PHPEXTSION}/from/this/mirror" | grep 'HTTP\/' | grep '404' PHPGEO_CURLCHECK=$? if [[ "$PHPGEO_CURLCHECK" = '0' ]]; then PHP_MIRRORURL="http://php.net" diff --git a/inc/phpng_download.inc b/inc/phpng_download.inc index e9502e9bc..11871ffbc 100644 --- a/inc/phpng_download.inc +++ b/inc/phpng_download.inc @@ -15,8 +15,8 @@ phpng_download() { if [ -s php-${PHPNGVER}.tar.xz ]; then cecho "php-${PHPNGVER}.tar.xz found, skipping download..." $boldgreen else - echo "wget -cnv https://downloads.php.net/~pollita/php-${PHPNGVER}.tar.xz --tries=3" - wget -cnv https://downloads.php.net/~pollita/php-${PHPNGVER}.tar.xz --tries=3 + echo "wget -cnv4 https://downloads.php.net/~pollita/php-${PHPNGVER}.tar.xz --tries=3" + wget -cnv4 https://downloads.php.net/~pollita/php-${PHPNGVER}.tar.xz --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: php-${PHPNGVER}.tar.xz download failed." $boldgreen @@ -54,8 +54,8 @@ phpng_download() { if [ -s php-${PHPNGVER}.tar.gz ]; then cecho "php-${PHPNGVER}.tar.gz found, skipping download..." $boldgreen else - echo "wget -cnv https://downloads.php.net/~ab/php-${PHPNGVER}.tar.gz --tries=3" - wget -cnv https://downloads.php.net/~ab/php-${PHPNGVER}.tar.gz --tries=3 + echo "wget -cnv4 https://downloads.php.net/~ab/php-${PHPNGVER}.tar.gz --tries=3" + wget -cnv4 https://downloads.php.net/~ab/php-${PHPNGVER}.tar.gz --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: php-${PHPNGVER}.tar.gz download failed." $boldgreen diff --git a/inc/postfix.inc b/inc/postfix.inc index 2d7316d15..21fb370ba 100644 --- a/inc/postfix.inc +++ b/inc/postfix.inc @@ -300,7 +300,7 @@ cmservice postfix restart postconf -n | grep mailbox_size_limit | head -n1 | awk '{print $3}' cd $DIR_TMP - wget -cnv http://linxnet.com/downloads/pflogsumm-1.1.5.tar.gz --tries=3 + wget -cnv4 http://linxnet.com/downloads/pflogsumm-1.1.5.tar.gz --tries=3 tar -xzf pflogsumm-1.1.5.tar.gz cd pflogsumm-1.1.5 cp pflogsumm.pl /usr/bin/pflogsumm diff --git a/inc/postgresql.inc b/inc/postgresql.inc index b5a9751a7..d94cc1e28 100644 --- a/inc/postgresql.inc +++ b/inc/postgresql.inc @@ -12,13 +12,13 @@ postgresqlinstall() { # cd $DIR_TMP if [[ "$CENTOS_SEVEN" = '7' ]]; then - wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm -O ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm + wget -4 https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm -O ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm rpm -Uvh ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm elif [[ "$CENTOS_SIX" = '6' && "$(uname -m)" = 'x86_64' ]]; then - wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm -O ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm + wget -4 https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm -O ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm rpm -Uvh ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm elif [[ "$CENTOS_SIX" = '6' && "$(uname -m)" != 'x86_64' ]]; then - wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-i386/pgdg-centos96-9.6-3.noarch.rpm -O ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm + wget -4 https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-i386/pgdg-centos96-9.6-3.noarch.rpm -O ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm rpm -Uvh ${DIR_TMP}/pgdg-centos96-9.6-3.noarch.rpm fi diff --git a/inc/redis.inc b/inc/redis.inc index 8fc9561d1..8fd061833 100644 --- a/inc/redis.inc +++ b/inc/redis.inc @@ -77,7 +77,7 @@ if [[ "$REDIS_PHPCURRENTVER" = '7.1' || "$PHPMUVER" = '7.1' || "$PHPMUVER" = 'NG PHPREDISGITLINK='https://github.com/phpredis/phpredis' # fallback mirror if official github is down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 $PHPREDISGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 $PHPREDISGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 PHPREDISGITCURLCHECK=$? if [[ "$PHPREDISGITCURLCHECK" != '0' ]]; then PHPREDISGITLINK='https://gitlab.com/centminmod-github-mirror/phpredis.git' diff --git a/inc/suhosin_setup.inc b/inc/suhosin_setup.inc index 3c09db7eb..f01a0b2d2 100644 --- a/inc/suhosin_setup.inc +++ b/inc/suhosin_setup.inc @@ -23,7 +23,7 @@ suhosinsetup() { echo "suhosin-${SUHOSINVER}.tar.gz [found]" else echo "Error: suhosin-${SUHOSINVER}.tar.gz not found!!! Downloading now......" - wget -c --progress=bar http://download.suhosin.org/suhosin-${SUHOSINVER}.tar.gz --tries=3 + wget -c4 --progress=bar http://download.suhosin.org/suhosin-${SUHOSINVER}.tar.gz --tries=3 fi tar xvzf suhosin-${SUHOSINVER}.tar.gz diff --git a/inc/updater_submenu.inc b/inc/updater_submenu.inc index 61c9de447..0d20ab8aa 100644 --- a/inc/updater_submenu.inc +++ b/inc/updater_submenu.inc @@ -148,7 +148,7 @@ gitenv_setup() { # get Centmin Mod Git url remotely so to allow for Git repo renaming in future where # user can just use centmin.sh menu option 23 submenus to switch to a newly renamed # Git repo name if needed - REMOTE_CMGIT=$(curl -s https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) + REMOTE_CMGIT=$(curl -s4 https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) echo cecho "setup Centmin Mod git sourced install..." $boldyellow cd /usr/local/src @@ -207,7 +207,7 @@ gitenv_setup() { gitenv_update() { CM_DIRSIZE=$(df -P /usr/local/src/centminmod | awk '{print $4}' | tail -1 | awk '{print $1}') - REMOTE_CMGIT=$(curl -s https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) + REMOTE_CMGIT=$(curl -s4 https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) if [[ -d "${SCRIPT_DIR}/.git" ]]; then echo cecho "Updating Current Centmin Mod code branch via git" $boldyellow @@ -328,7 +328,7 @@ gitenv_change() { exit 1 fi CM_DIRSIZE=$(df -P /usr/local/src/centminmod | awk '{print $4}' | tail -1 | awk '{print $1}') - REMOTE_CMGIT=$(curl -s https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) + REMOTE_CMGIT=$(curl -s4 https://raw.githubusercontent.com/centminmod/centminmod/${branchname}/giturl.txt) if [[ -d "${SCRIPT_DIR}/.git" ]]; then echo echo "fetching latest branch list..." @@ -344,13 +344,13 @@ if [[ -d "${SCRIPT_DIR}/.git" ]]; then if [[ "$(echo $CMGIT | grep github)" ]]; then GITCURLSTATUS=$(curl -sI https://github.com/centminmod/centminmod/branches/active | grep 'HTTP\/' | awk '/200/ {print $2}') if [[ "$GITCURLSTATUS" = '200' ]]; then - CMBRANCHLIST=$(curl -s https://github.com/centminmod/centminmod/branches/active | grep -P '\/centminmod\/centminmod\/tree\/.*">' | grep -Po '(?<=href=")[^"]*(?=")' | sed 's|/centminmod/centminmod/tree/||g' | egrep -v '123.06stable|123.07stable|123.08beta03|123.08beta03-rtmp|123.08zerodown|123.09beta01-gcc|123.09beta01-dnf|123.09beta01-nchan') + CMBRANCHLIST=$(curl -s4 https://github.com/centminmod/centminmod/branches/active | grep -P '\/centminmod\/centminmod\/tree\/.*">' | grep -Po '(?<=href=")[^"]*(?=")' | sed 's|/centminmod/centminmod/tree/||g' | egrep -v '123.06stable|123.07stable|123.08beta03|123.08beta03-rtmp|123.08zerodown|123.09beta01-gcc|123.09beta01-dnf|123.09beta01-nchan') echo "$CMBRANCHLIST" fi else GITCURLSTATUS=$(curl -sI https://gitlab.com/centminmod/centminmod/branches?sort=recently_updated | grep 'HTTP\/' | awk '/200/ {print $2}') if [[ "$GITCURLSTATUS" = '200' ]]; then - CMBRANCHLIST=$(curl -s https://gitlab.com/centminmod/centminmod/branches?sort=recently_updated | grep -P '\/centminmod\/centminmod\/tree\/.*">' | grep -Po '(?<=href=")[^"]*(?=")' | sed 's|/centminmod/centminmod/tree/||g' | egrep -v '123.06stable|123.07stable|123.08beta03|123.08beta03-rtmp|123.08zerodown|123.09beta01-gcc|123.09beta01-dnf|123.09beta01-nchan') + CMBRANCHLIST=$(curl -s4 https://gitlab.com/centminmod/centminmod/branches?sort=recently_updated | grep -P '\/centminmod\/centminmod\/tree\/.*">' | grep -Po '(?<=href=")[^"]*(?=")' | sed 's|/centminmod/centminmod/tree/||g' | egrep -v '123.06stable|123.07stable|123.08beta03|123.08beta03-rtmp|123.08zerodown|123.09beta01-gcc|123.09beta01-dnf|123.09beta01-nchan') echo "$CMBRANCHLIST" fi fi diff --git a/inc/wpsetup.inc b/inc/wpsetup.inc index e7d8f2736..c1c09fc7c 100644 --- a/inc/wpsetup.inc +++ b/inc/wpsetup.inc @@ -2232,7 +2232,7 @@ echo "/home/nginx/domains/${vhostname}/public${WPSUBDIR}" #/usr/bin/wp cli update --allow-root echo "update wp-cli" rm -rf /usr/bin/wp -wget -cnv --no-check-certificate https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/bin/wp --tries=3 +wget -cnv4 --no-check-certificate https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/bin/wp --tries=3 chmod 0700 /usr/bin/wp /usr/bin/wp --info --allow-root /usr/bin/wp plugin status --allow-root diff --git a/inc/zendopcache_install.inc b/inc/zendopcache_install.inc index ec855a5df..2d174d6c2 100644 --- a/inc/zendopcache_install.inc +++ b/inc/zendopcache_install.inc @@ -97,7 +97,7 @@ if [[ "$PHPCURRENTVER" == 5.[2-4] || "$ZOPCACHE_OVERRIDE" = [yY] ]]; then zopcachetarball fi -#wget http://pecl.php.net/get/zendopcache-7.0.5.tgz +#wget -4 http://pecl.php.net/get/zendopcache-7.0.5.tgz #tar xvzf zendopcache-7.0.5.tgz #cd zendopcache-7.0.5 cd zendopcache-${ZOPCACHECACHE_VERSION} diff --git a/installer-dnf-gitlab.sh b/installer-dnf-gitlab.sh index 130b88a5c..0f2c8c700 100755 --- a/installer-dnf-gitlab.sh +++ b/installer-dnf-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -951,7 +951,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-dnf.sh b/installer-dnf.sh index b0173cb5e..5f3f6dd8d 100755 --- a/installer-dnf.sh +++ b/installer-dnf.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-gitlab.sh b/installer-gitlab.sh index e7873e22b..6b51f051d 100755 --- a/installer-gitlab.sh +++ b/installer-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -951,7 +951,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-latest-gitlab.sh b/installer-latest-gitlab.sh index a32894677..bf0fdcfe5 100755 --- a/installer-latest-gitlab.sh +++ b/installer-latest-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -492,7 +492,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -529,7 +529,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -956,7 +956,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-latest.sh b/installer-latest.sh index 18648ecf2..19ac1b846 100755 --- a/installer-latest.sh +++ b/installer-latest.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -490,7 +490,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -527,7 +527,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -954,7 +954,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-minimal-gitlab.sh b/installer-minimal-gitlab.sh index d435c2560..af7765a1d 100755 --- a/installer-minimal-gitlab.sh +++ b/installer-minimal-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-minimal.sh b/installer-minimal.sh index d765c7da9..c04d0c375 100755 --- a/installer-minimal.sh +++ b/installer-minimal.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-ngxpagespeed-gitlab.sh b/installer-ngxpagespeed-gitlab.sh index 18d36b263..7468cfb22 100755 --- a/installer-ngxpagespeed-gitlab.sh +++ b/installer-ngxpagespeed-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer-ngxpagespeed.sh b/installer-ngxpagespeed.sh index d01388e94..0d2783c61 100755 --- a/installer-ngxpagespeed.sh +++ b/installer-ngxpagespeed.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer.sh b/installer.sh index 03162c8bc..669c301f1 100755 --- a/installer.sh +++ b/installer.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer55-gitlab.sh b/installer55-gitlab.sh index aa061b659..d576ae5e6 100755 --- a/installer55-gitlab.sh +++ b/installer55-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer55.sh b/installer55.sh index 69e60b31a..3e4f69bec 100755 --- a/installer55.sh +++ b/installer55.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer56-gitlab.sh b/installer56-gitlab.sh index 9899fe596..87d623a5b 100755 --- a/installer56-gitlab.sh +++ b/installer56-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer56.sh b/installer56.sh index d39ec8c9f..ca4637566 100755 --- a/installer56.sh +++ b/installer56.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer7-gitlab.sh b/installer7-gitlab.sh index 4c061e596..b5a1c1171 100755 --- a/installer7-gitlab.sh +++ b/installer7-gitlab.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/installer7.sh b/installer7.sh index 388e877d6..9e5aa55b6 100755 --- a/installer7.sh +++ b/installer7.sh @@ -2,7 +2,7 @@ ####################################################### # centminmod.com cli installer # To run installer.sh type: -# curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash +# curl -4sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash ####################################################### export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" DT=$(date +"%d%m%y-%H%M%S") @@ -486,7 +486,7 @@ source_pcreinstall() { if [ -s "$ALTPCRELINKFILE" ]; then cecho "$ALTPCRELINKFILE Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$ALTPCRELINK" --tries=3 + wget -c4 --progress=bar "$ALTPCRELINK" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $ALTPCRELINKFILE download failed." $boldgreen @@ -523,7 +523,7 @@ source_wgetinstall() { if [ -s "$WGET_FILENAME" ]; then cecho "$WGET_FILENAME Archive found, skipping download..." $boldgreen else - wget -c --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 + wget -c4 --progress=bar "$WGET_LINK" -O "$WGET_FILENAME" --tries=3 ERROR=$? if [[ "$ERROR" != '0' ]]; then cecho "Error: $WGET_FILENAME download failed." $boldgreen @@ -950,7 +950,7 @@ cd $INSTALLDIR if [[ -f /usr/local/bin/axel && $AXEL = [yY] ]]; then /usr/bin/axel https://github.com/centminmod/centminmod/archive/${DOWNLOAD} else - wget -c --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 + wget -c4 --no-check-certificate https://github.com/centminmod/centminmod/archive/${DOWNLOAD} --tries=3 fi getcmendtime=$(TZ=UTC date +%s.%N) rm -rf centminmod-* diff --git a/tools/cminfo.sh b/tools/cminfo.sh index 14a6551dc..ae954dee8 100755 --- a/tools/cminfo.sh +++ b/tools/cminfo.sh @@ -130,7 +130,7 @@ rm -rf /usr/bin/cminfo CMINFOLINK='https://raw.githubusercontent.com/centminmod/centminmod/master/tools/cminfo.sh' # fallback mirror -curl -sI --connect-timeout 5 --max-time 5 \$CMINFOLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 +curl -4Is --connect-timeout 5 --max-time 5 \$CMINFOLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 CMINFO_CURLCHECK=\$? if [[ "\$CMINFO_CURLCHECK" != '0' ]]; then CMINFOLINK='https://gitlab.com/centminmod-github-mirror/centminmod/raw/master/tools/cminfo.sh' @@ -175,7 +175,7 @@ echo "------------------------------------------------------------------" echo "Server Location Info" # echo -curl -s${CURL_TIMEOUTS} ipinfo.io/geo 2>&1 | sed -e 's|[{}]||' -e 's/\(^"\|"\)//g' -e 's|,||' | egrep -v 'phone|postal|loc' +curl -4s${CURL_TIMEOUTS} ipinfo.io/geo 2>&1 | sed -e 's|[{}]||' -e 's/\(^"\|"\)//g' -e 's|,||' | egrep -v 'phone|postal|loc' echo echo "Processors" "physical = ${PHYSICALCPUS}, cores = ${CPUCORES}, virtual = ${VIRTUALCORES}, hyperthreading = ${HT}" diff --git a/tools/imagemagick-update.sh b/tools/imagemagick-update.sh index 6592ddd72..12b942fc1 100755 --- a/tools/imagemagick-update.sh +++ b/tools/imagemagick-update.sh @@ -283,7 +283,7 @@ echo $PHPSEVEN_CHECKVER if [[ "$PHPMUVER" > 7 || "$PHPSEVEN_CHECKVER" = '0' ]] && [[ "$(echo $IMAGICKPHP_VER | cut -d . -f1,2 | sed -e 's|\.||')" -le '33' ]]; then IMAGICKGITLINK='https://github.com/mkoppanen/imagick' # fallback mirror if official github is down, use gitlab mirror - curl -sI --connect-timeout 5 --max-time 5 $IMAGICKGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 $IMAGICKGITLINK | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 IMAGICKGITCURLCHECK=$? if [[ "$IMAGICKGITCURLCHECK" != '0' ]]; then IMAGICKGITLINK='https://gitlab.com/centminmod-github-mirror/imagick.git' diff --git a/tools/kernelcheck.sh b/tools/kernelcheck.sh index 306d359d8..d5ad006ee 100755 --- a/tools/kernelcheck.sh +++ b/tools/kernelcheck.sh @@ -61,11 +61,11 @@ done kernelchecker_get() { mkdir -p /root/tools - curl -sI --connect-timeout 5 --max-time 5 "$WGET_LINK" | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 + curl -4Is --connect-timeout 5 --max-time 5 "$WGET_LINK" | grep 'HTTP\/' | grep '200' >/dev/null 2>&1 WGET_CURLCHECK=$? if [[ "$WGET_CURLCHECK" = '0' ]]; then rm -rf /root/tools/kernelchecker.py - wget -cnv -O /root/tools/kernelchecker.py "$WGET_LINK" >/dev/null 2>&1 + wget -cnv4 -O /root/tools/kernelchecker.py "$WGET_LINK" >/dev/null 2>&1 fi } diff --git a/tools/nginxupdate.sh b/tools/nginxupdate.sh index 3b7bdebfa..1e59067f8 100755 --- a/tools/nginxupdate.sh +++ b/tools/nginxupdate.sh @@ -459,7 +459,7 @@ fi download_cmd() { HTTPS_AXELCHECK=$(echo "$1" |awk -F '://' '{print $1}') - if [[ "$(curl -Isv $1 2>&1 | egrep 'ECDSA')" ]]; then + if [[ "$(curl -4Isv $1 2>&1 | egrep 'ECDSA')" ]]; then # axel doesn't natively support ECC 256bit ssl certs # with ECDSA ciphers due to CentOS system OpenSSL 1.0.2e echo "ECDSA SSL Cipher BASED HTTPS detected, switching from axel to wget" diff --git a/tools/nv.sh b/tools/nv.sh index 841762137..064ea938d 100755 --- a/tools/nv.sh +++ b/tools/nv.sh @@ -15,7 +15,7 @@ DIR_TMP=/svr-setup CONFIGSCANBASE='/etc/centminmod' OPENSSL_VERSION=$(awk -F "'" /'^OPENSSL_VERSION/ {print $2}' $CUR_DIR/centmin.sh) # CURRENTIP=$(echo $SSH_CLIENT | awk '{print $1}') -# CURRENTCOUNTRY=$(curl -s${CURL_TIMEOUTS} ipinfo.io/$CURRENTIP/country) +# CURRENTCOUNTRY=$(curl -4s${CURL_TIMEOUTS} ipinfo.io/$CURRENTIP/country) SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) LOGPATH="${CENTMINLOGDIR}/centminmod_${DT}_nginx_addvhost_nv.log" USE_NGINXMAINEXTLOGFORMAT='n' diff --git a/tools/nvwp.sh b/tools/nvwp.sh index 18881875c..1c0c9ea8a 100755 --- a/tools/nvwp.sh +++ b/tools/nvwp.sh @@ -15,7 +15,7 @@ CURL_TIMEOUTS=' --max-time 5 --connect-timeout 5' DIR_TMP=/svr-setup OPENSSL_VERSION=$(awk -F "'" /'^OPENSSL_VERSION/ {print $2}' $CUR_DIR/centmin.sh) # CURRENTIP=$(echo $SSH_CLIENT | awk '{print $1}') -# CURRENTCOUNTRY=$(curl -s${CURL_TIMEOUTS} ipinfo.io/$CURRENTIP/country) +# CURRENTCOUNTRY=$(curl -4s${CURL_TIMEOUTS} ipinfo.io/$CURRENTIP/country) SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) LOGPATH="${CENTMINLOGDIR}/centminmod_${DT}_nginx_addvhost_nvwp.log" USE_NGINXMAINEXTLOGFORMAT='n' @@ -1404,7 +1404,7 @@ if [[ -d "/home/nginx/domains/${vhostname}/public" ]]; then # download wordpress latest zip rm -rf latest.zip - wget -cnv https://wordpress.org/latest.zip + wget -cnv4 https://wordpress.org/latest.zip unzip -q latest.zip cd wordpress \cp -Rf * /home/nginx/domains/${vhostname}/public diff --git a/tools/sitestatus.sh b/tools/sitestatus.sh index b2300ffc2..6afd76696 100755 --- a/tools/sitestatus.sh +++ b/tools/sitestatus.sh @@ -90,7 +90,7 @@ FFF checkstatus() { if [[ "$CHECK" = [yY] ]]; then - curl -I $CHECKURL + curl -4I $CHECKURL fi }