mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
up
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user