Update redis.sh

pull/125/head
midoks 3 years ago
parent c7648ef6ed
commit c71bc2d9e3
  1. 7
      plugins/php/versions/common/redis.sh

@ -27,7 +27,7 @@ fi
NON_ZTS_FILENAME=`ls $serverPath/php/${version}/lib/php/extensions | grep no-debug-non-zts` NON_ZTS_FILENAME=`ls $serverPath/php/${version}/lib/php/extensions | grep no-debug-non-zts`
extDir=$serverPath/php/${version}/lib/php/extensions/${NON_ZTS_FILENAME}/ extFile=$serverPath/php/${version}/lib/php/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then if [ "$sysName" == "Darwin" ];then
BAK='_bak' BAK='_bak'
@ -37,13 +37,13 @@ fi
Install_lib() Install_lib()
{ {
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"` isInstall=`cat $serverPath/php/${version}/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then if [ "${isInstall}" != "" ];then
echo "php-$version 已安装${LIBNAME},请选择其它版本!" echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return return
fi fi
extFile=$extDir${LIBNAME}.so
if [ ! -f "$extFile" ];then if [ ! -f "$extFile" ];then
php_lib=$sourcePath/php_lib php_lib=$sourcePath/php_lib
@ -81,7 +81,6 @@ Uninstall_lib()
return return
fi fi
extFile=$extDir${LIBNAME}.so
if [ ! -f "$extFile" ];then if [ ! -f "$extFile" ];then
echo "php-$version 未安装${LIBNAME},请选择其它版本!" echo "php-$version 未安装${LIBNAME},请选择其它版本!"
echo "php-$version not install memcache, Plese select other version!" echo "php-$version not install memcache, Plese select other version!"

Loading…
Cancel
Save