mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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=''
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user