pull/113/head
midoks 3 years ago
parent ffd22d384b
commit c68043a124
  1. 5
      plugins/openresty/index.py
  2. 2
      plugins/openresty/install.sh

@ -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, '')

@ -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
}

Loading…
Cancel
Save