diff --git a/plugins/php/versions/53/install.sh b/plugins/php/versions/53/install.sh index 261df537a..02156d8cd 100755 --- a/plugins/php/versions/53/install.sh +++ b/plugins/php/versions/53/install.sh @@ -21,7 +21,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 diff --git a/plugins/php/versions/54/install.sh b/plugins/php/versions/54/install.sh index ab48472ff..9ab7bc1b6 100755 --- a/plugins/php/versions/54/install.sh +++ b/plugins/php/versions/54/install.sh @@ -21,8 +21,11 @@ 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.gz http://au1.php.net/distributions/php-${version}.tar.gz - cd $sourcePath/php && tar -zxvf $sourcePath/php/php-${version}.tar.gz + 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 diff --git a/plugins/php/versions/55/install.sh b/plugins/php/versions/55/install.sh index 74d151275..899c5ad98 100755 --- a/plugins/php/versions/55/install.sh +++ b/plugins/php/versions/55/install.sh @@ -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 diff --git a/plugins/php/versions/56/install.sh b/plugins/php/versions/56/install.sh index 83d155d60..4148ed794 100755 --- a/plugins/php/versions/56/install.sh +++ b/plugins/php/versions/56/install.sh @@ -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 diff --git a/plugins/php/versions/70/install.sh b/plugins/php/versions/70/install.sh index 87f08eda4..e0dbf8128 100755 --- a/plugins/php/versions/70/install.sh +++ b/plugins/php/versions/70/install.sh @@ -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 diff --git a/plugins/php/versions/71/install.sh b/plugins/php/versions/71/install.sh index 103ae2d0e..f7a166688 100755 --- a/plugins/php/versions/71/install.sh +++ b/plugins/php/versions/71/install.sh @@ -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 diff --git a/plugins/php/versions/72/install.sh b/plugins/php/versions/72/install.sh index 6e0afdd90..cd0bc069e 100755 --- a/plugins/php/versions/72/install.sh +++ b/plugins/php/versions/72/install.sh @@ -21,7 +21,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 diff --git a/plugins/php/versions/73/install.sh b/plugins/php/versions/73/install.sh index 240565327..2ce82dcc8 100755 --- a/plugins/php/versions/73/install.sh +++ b/plugins/php/versions/73/install.sh @@ -21,7 +21,11 @@ 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 diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index 520aae8bc..ccceedd9b 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -21,9 +21,13 @@ 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.gz https://github.com/php/php-src/archive/php-${version}.tar.gz - cd $sourcePath/php && tar zxvf $sourcePath/php/php-${version}.tar.gz - mv $sourcePath/php/php-src-php-${version} $sourcePath/php/php${PHP_VER} + + 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 cd $sourcePath/php/php74