This commit is contained in:
parent
ffd22d384b
commit
c68043a124
|
|
@ -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…
Reference in New Issue