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():