Skip to content

Commit

Permalink
part 2 fix php.net CDN 503 wget bug in 123.09beta01
Browse files Browse the repository at this point in the history
- php.net CDN downloads give 503 site unavailable error if downloaded with wget 1.14 CentOS 7 default version https://bugs.php.net/bug.php?id=81056. But works with Centmin Mod later upgraded wget 1.20.3 version. Switch to using curl for initial PHP install download and PHP upgrade downloads.
- fix curl download command
  • Loading branch information
centminmod committed May 26, 2021
1 parent 20180a4 commit 9443326
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion centmin-cli.sh
Expand Up @@ -27,7 +27,7 @@ DT=$(date +"%d%m%y-%H%M%S")
branchname='123.09beta01'
SCRIPT_MAJORVER='1.2.3'
SCRIPT_MINORVER='09'
SCRIPT_INCREMENTVER='685'
SCRIPT_INCREMENTVER='686'
SCRIPT_VERSIONSHORT="${branchname}"
SCRIPT_VERSION="${SCRIPT_VERSIONSHORT}.b${SCRIPT_INCREMENTVER}"
SCRIPT_DATE='30/06/2021'
Expand Down
2 changes: 1 addition & 1 deletion centmin.sh
Expand Up @@ -27,7 +27,7 @@ DT=$(date +"%d%m%y-%H%M%S")
branchname='123.09beta01'
SCRIPT_MAJORVER='1.2.3'
SCRIPT_MINORVER='09'
SCRIPT_INCREMENTVER='685'
SCRIPT_INCREMENTVER='686'
SCRIPT_VERSIONSHORT="${branchname}"
SCRIPT_VERSION="${SCRIPT_VERSIONSHORT}.b${SCRIPT_INCREMENTVER}"
SCRIPT_DATE='30/06/2021'
Expand Down
6 changes: 3 additions & 3 deletions inc/downloads.inc
Expand Up @@ -40,17 +40,17 @@ phpxz_detect() {
if [[ "$CENTOS_SEVEN" = 7 && "$USEAXEL" = [yY] ]]; then
DOWNLOADAPP_PHP="curl -4"
WGETRETRY_PHP=''
AXELPHPTARGZ_PHP=''
AXELPHPTARGZ_PHP="-o php-${phpver}.tar.${PHPEXTSION}"
AXELPHPUPGRADETARGZ_PHP="-o php-${phpver}.tar.${PHPEXTSION}"
elif [[ "$CENTOS_SIX" = 6 && "$USEAXEL" = [yY] ]]; then
DOWNLOADAPP_PHP="curl -4"
WGETRETRY_PHP=''
AXELPHPTARGZ_PHP=''
AXELPHPTARGZ_PHP="-o php-${phpver}.tar.${PHPEXTSION}"
AXELPHPUPGRADETARGZ_PHP="-o php-${phpver}.tar.${PHPEXTSION}"
else
DOWNLOADAPP_PHP="curl -4"
WGETRETRY_PHP=''
AXELPHPTARGZ_PHP=''
AXELPHPTARGZ_PHP="-o php-${phpver}.tar.${PHPEXTSION}"
AXELPHPUPGRADETARGZ_PHP="-o php-${phpver}.tar.${PHPEXTSION}"
fi
}
Expand Down

0 comments on commit 9443326

Please sign in to comment.