From fe6b16eda4364654f3e7261208bb38a4d31bfec6 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 11 Feb 2023 05:27:34 +0800 Subject: [PATCH] Update index.py --- plugins/op_waf/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index fd9579fbb..1cbee7d34 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -360,12 +360,14 @@ def initDreplace(): content = mw.readFile(init_worker) content = contentReplace(content) mw.writeFile(dst_init_worker, content) + mw.writeFile(init_worker, content) access_file = root_access_dir + '/opwaf_init.lua' config = path + "/waf/lua/init.lua" content = mw.readFile(config) content = contentReplace(content) mw.writeFile(access_file, content) + mw.writeFile(config, content) waf_conf = dstWafConf() if not os.path.exists(waf_conf):