This commit is contained in:
midoks
2022-10-24 19:11:48 +08:00
parent 23f2b9efac
commit 07d173d2cf
4 changed files with 12 additions and 2 deletions
+9
View File
@@ -424,6 +424,15 @@ def restart():
def reload():
stop()
path = getServerDir()
path_tpl = getPluginDir()
config = path + "/waf/lua/init.lua"
config_tpl = path_tpl + "/waf/lua/init.lua"
content = mw.readFile(config_tpl)
content = contentReplace(content)
mw.writeFile(config, content)
errlog = mw.getServerDir() + "/openresty/nginx/logs/error.log"
mw.execShell('rm -rf ' + errlog)