From d091fc48f698afa413747e655db8d354d1de9942 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 5 Dec 2025 04:11:16 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index b3ee56ed8..4cd3e6a69 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -206,6 +206,11 @@ def confReplace(): if not os.path.exists(a_conf): mw.writeFile(a_conf, mw.readFile(a_conf_tpl)) + # copy resty lib + src_resty_dir = getPluginDir()+'/resty' + dst_resty_dir = getServerDir()+'/lualib/resty' + mw.execShell('cp -rf ' src_resty_dir + '' + dst_resty_dir) + def initDreplace():