diff --git a/class/core/site_api.py b/class/core/site_api.py index 7f20388da..fd7c1487c 100755 --- a/class/core/site_api.py +++ b/class/core/site_api.py @@ -2028,12 +2028,15 @@ location ~* ^{from}(.*)$ { tmp['name'] = '纯静态' data.append(tmp) + # 标准判断 checkPath = mw.getServerDir() + '/php/' + val + '/bin/php' if os.path.exists(checkPath): tmp['version'] = val tmp['name'] = 'PHP-' + val data.append(tmp) + # 其他PHP安装类型 + return mw.getJson(data) # 是否跳转到https diff --git a/plugins/php-yum/versions/74/install.sh b/plugins/php-yum/versions/74/install.sh index 50db0a368..ef8f50566 100755 --- a/plugins/php-yum/versions/74/install.sh +++ b/plugins/php-yum/versions/74/install.sh @@ -27,7 +27,7 @@ Install_php() ### centos start ################ rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm -yum install php74 php74-php-fpm +yum install -y php74 php74-php-fpm ### centos start ################ if [ "$?" == "0" ];then diff --git a/plugins/php-yum/versions/80/install.sh b/plugins/php-yum/versions/80/install.sh index e1f22552d..99361224b 100755 --- a/plugins/php-yum/versions/80/install.sh +++ b/plugins/php-yum/versions/80/install.sh @@ -27,7 +27,7 @@ Install_php() ### centos start ################ rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm -yum install php80 php80-php-fpm +yum install -y php80 php80-php-fpm ### centos start ################ if [ "$?" == "0" ];then diff --git a/plugins/php-yum/versions/81/install.sh b/plugins/php-yum/versions/81/install.sh index afed8f074..f60ec2b71 100755 --- a/plugins/php-yum/versions/81/install.sh +++ b/plugins/php-yum/versions/81/install.sh @@ -27,7 +27,7 @@ Install_php() ### centos start ################ rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm -yum install php81 php81-php-fpm +yum install -y php81 php81-php-fpm ### centos start ################ if [ "$?" == "0" ];then