diff --git a/class/core/mw.py b/class/core/mw.py index d508baf8d..d47e1877b 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -309,7 +309,7 @@ def opLuaInitAccessFile(): opLuaMake('access_by_lua_file') -def opLuaMake(): +def opLuaMakeAll(): opLuaInitFile() opLuaInitWorkerFile() opLuaInitAccessFile() diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index a75bc3ab0..6193b73d3 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -356,7 +356,7 @@ def makeDstLua(): content = contentReplace(content) mw.writeFile(access_file_dst, content) - mw.opLuaMake() + mw.opLuaMakeAll() def initDreplace(): @@ -448,7 +448,7 @@ def stop(): import tool_task tool_task.removeBgTask() - mw.opLuaMake() + mw.opLuaMakeAll() restartWeb() return 'ok' diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 01f135dfa..7f0beb894 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -158,9 +158,7 @@ def confReplace(): if not os.path.exists(empty_lua): mw.writeFile(empty_lua, '') - mw.opLuaInitFile() - mw.opLuaInitWorkerFile() - mw.opLuaInitAccessFile() + mw.opLuaMakeAll() # 静态配置 php_conf = mw.getServerDir() + '/web_conf/php/conf'