This commit is contained in:
midoks
2020-07-12 15:10:39 +08:00
parent 060b2160aa
commit 53398031b1
9 changed files with 41 additions and 12 deletions
+4 -1
View File
@@ -20,7 +20,10 @@ mkdir -p $sourcePath/php
mkdir -p $serverPath/php
if [ ! -d $sourcePath/php/php${PHP_VER} ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz http://au1.php.net/distributions/php-${version}.tar.xz
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz http://au1.php.net/distributions/php-${version}.tar.xz
fi
cd $sourcePath/php && tar -Jxf $sourcePath/php/php-${version}.tar.xz
mv $sourcePath/php/php-${version} $sourcePath/php/php${PHP_VER}
fi