This commit is contained in:
midoks 2022-06-29 00:42:16 +08:00
parent ffd22d384b
commit c68043a124
2 changed files with 5 additions and 2 deletions

View File

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

View File

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