From eda0911a2e83d62ef1a961ff499009f263bea434 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 14 Jul 2020 13:09:29 +0800 Subject: [PATCH] Update apc.sh --- plugins/php/versions/54/apc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/php/versions/54/apc.sh b/plugins/php/versions/54/apc.sh index d1475f843..895a38be8 100755 --- a/plugins/php/versions/54/apc.sh +++ b/plugins/php/versions/54/apc.sh @@ -12,6 +12,7 @@ serverPath=$(dirname "$rootPath") sourcePath=${serverPath}/source/php LIBNAME=apc +_LIBNAME=$(echo $LIBNAME | tr '[a-z]' '[A-Z]') LIBV=3.1.9 sysName=`uname` actionType=$1 @@ -36,12 +37,12 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - if [ ! -d $php_lib/${LIBNAME}-${LIBV} ];then + if [ ! -d $php_lib/${_LIBNAME}-${LIBV} ];then _LIBNAME=$(echo $LIBNAME | tr '[a-z]' '[A-Z]') wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${_LIBNAME}-${LIBV}.tgz cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz fi - cd $php_lib/${LIBNAME}-${LIBV} + cd $php_lib/${_LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config