From 5586e8255b6a785c2f099cf2c034670cd20f4a8a Mon Sep 17 00:00:00 2001 From: jingmian <153555712@qq.com> Date: Fri, 10 Mar 2023 17:25:32 +0800 Subject: [PATCH] update install --- services/php/extensions/install.sh | 2 +- services/php80/extensions/install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/php/extensions/install.sh b/services/php/extensions/install.sh index 322dcc44..010897d6 100644 --- a/services/php/extensions/install.sh +++ b/services/php/extensions/install.sh @@ -70,7 +70,7 @@ installExtensionFromTgz() tar -xf ${tgzName}.tgz -C ${extensionName} --strip-components=1 ( cd ${extensionName} && phpize && ./configure ${para1} && make ${MC} && make install ) - docker-php-ext-enable ${extensionName} $2 + docker-php-ext-enable ${extensionName} } diff --git a/services/php80/extensions/install.sh b/services/php80/extensions/install.sh index e23528eb..c05abc63 100644 --- a/services/php80/extensions/install.sh +++ b/services/php80/extensions/install.sh @@ -60,7 +60,7 @@ isPhpVersionGreaterOrEqual() installExtensionFromTgz() { tgzName=$1 - para1= + para1= extensionName="${tgzName%%-*}" if [ $2 ]; then para1=$2 @@ -69,7 +69,7 @@ installExtensionFromTgz() tar -xf ${tgzName}.tgz -C ${extensionName} --strip-components=1 ( cd ${extensionName} && phpize && ./configure ${para1} && make ${MC} && make install ) - docker-php-ext-enable ${extensionName} $2 + docker-php-ext-enable ${extensionName} }