From c68043a1248e6effb8208f68a39aea0fdd2f508b Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 29 Jun 2022 00:42:16 +0800 Subject: [PATCH] up --- plugins/openresty/index.py | 5 ++++- plugins/openresty/install.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 80bc3e3ea..dfb88ee73 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -136,7 +136,10 @@ def confReplace(): mw.writeFile(nconf, content) # 静态配置 - static_conf = getServerDir() + '/nginx/conf/enable-php-00.conf' + php_conf = mw.getServerDir() + '/web_conf/php/conf' + if not os.path.exists(php_conf): + mw.execShell('mkdir -p ' + php_conf) + static_conf = mw.getServerDir() + '/web_conf/php/conf/enable-php-00.conf' if not os.path.exists(static_conf): mw.writeFile(static_conf, '') diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index 627e70cfb..564a40236 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -49,7 +49,7 @@ Install_openresty() if [ -d $serverPath/openresty ];then echo "${VERSION}" > $serverPath/openresty/version.pl - echo "" > $serverPath/openresty/nginx/conf/enable-php-00.conf + echo "" > $serverPath/web_conf/php/conf/enable-php-00.conf fi echo '安装完成' > $install_tmp }