This commit is contained in:
dami
2026-09-11 21:28:59 +08:00
parent 370ff99134
commit acd46f4724
62 changed files with 187 additions and 187 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ Install_php()
yum install -y php80 php80-php-fpm
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi
@@ -34,7 +34,7 @@ Uninstall_php()
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -17,7 +17,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
yum install -y php84 php84-php-fpm
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi
@@ -32,7 +32,7 @@ Uninstall_php()
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+1 -1
View File
@@ -35,7 +35,7 @@ if [ "$action" = 'install' ];then
yum install -y php${version}-php-pecl-${extName}
fi
# if [ "${extName}" == "mysql" ];then
# if [ "${extName}" = "mysql" ];then
# yum install -y php74-php-pecl-mysql
# fi
fi
@@ -82,8 +82,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+1 -1
View File
@@ -32,7 +32,7 @@ extIni=${cfgDir}/10-${LIBNAME}.ini
echo $extSoFile
echo $extIni
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
+1 -1
View File
@@ -27,7 +27,7 @@ ext_file=${ext_dir}/10-opcache.ini
echo $ext_file
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
yum install -y php${version}-php-${LIBNAME}
echo "ls ${cfgDir}/php${version}/php.d | grep "${LIBNAME}.ini"| cut -d \ -f 1"
find_opcache=`ls ${cfgDir}/php${version}/php.d | grep "${LIBNAME}.ini"| cut -d \ -f 1`