Update install.sh

This commit is contained in:
midoks
2020-07-14 08:46:30 +08:00
parent b1a03e50b2
commit f1ec8ad714
+3 -3
View File
@@ -21,11 +21,11 @@ mkdir -p $sourcePath/php
mkdir -p $serverPath/php
if [ ! -d $sourcePath/php/php${PHP_VER} ];then
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
if [ ! -f $sourcePath/php/php-${version}.tar.gz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.gz http://au1.php.net/distributions/php-${version}.tar.gz
fi
cd $sourcePath/php && tar -Jxf $sourcePath/php/php-${version}.tar.xz
cd $sourcePath/php && tar -zxvf $sourcePath/php/php-${version}.tar.gz
mv $sourcePath/php/php-${version} $sourcePath/php/php${PHP_VER}
fi