pull/125/head
midoks 3 years ago
parent 9e26a30c7f
commit e7eb176c34
  1. 19
      plugins/php-yum/install.sh
  2. 6
      plugins/php-yum/versions/74/install.sh
  3. 5
      plugins/php-yum/versions/80/install.sh
  4. 7
      plugins/php-yum/versions/81/install.sh
  5. 11
      plugins/php-yum/versions/82/install.sh

@ -32,6 +32,25 @@ if [ ! -d $curPath/versions/$2 ];then
fi
#获取信息和版本
# bash /www/server/mdsever-web/scripts/getos.sh
bash ${rootPath}/scripts/getos.sh
OSNAME=`cat ${rootPath}/data/osname.pl`
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
if [ "$OSNAME" == "centos" ];then
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
fi
if [ "$OSNAME" == "fedora" ];then
rpm -Uvh http://rpms.remirepo.net/fedora/remi-release-${VERSION_ID}.rpm
fi
if [ "${action}" == "uninstall" ] && [ -d ${serverPath}/php-yum/${type} ];then
#初始化
cd ${rootPath} && python3 ${rootPath}/plugins/php-yum/index.py stop ${type}

@ -25,11 +25,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install -y php74 php74-php-fpm
### centos start ################
yum install -y php74 php74-php-fpm
if [ "$?" == "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi

@ -25,11 +25,8 @@ Install_php()
{
#------------------------ install start ------------------------------------#
### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install -y php80 php80-php-fpm
### centos start ################
yum install -y php80 php80-php-fpm
if [ "$?" == "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi

@ -24,12 +24,7 @@ PHP_VER=81
Install_php()
{
#------------------------ install start ------------------------------------#
### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install -y php81 php81-php-fpm
### centos start ################
yum install -y php81 php81-php-fpm
if [ "$?" == "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi

@ -11,12 +11,6 @@ sysName=`uname`
install_tmp=${rootPath}/tmp/mw_install.pl
#获取信息和版本
# bash /www/server/mdsever-web/scripts/getos.sh
bash ${rootPath}/scripts/getos.sh
OSNAME=`cat ${rootPath}/data/osname.pl`
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
version=8.2.x
PHP_VER=82
@ -24,12 +18,7 @@ PHP_VER=82
Install_php()
{
#------------------------ install start ------------------------------------#
### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install -y php82 php82-php-fpm
### centos start ################
if [ "$?" == "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi

Loading…
Cancel
Save