diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 9b38e50cb..b2147e242 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -131,9 +131,16 @@ def confReplace(): content = content.replace('{$OS_USER}', user) content = content.replace('{$OS_USER_GROUP}', user_group) + # ng_conf_md5 = '' + # ng_conf_md5_file = getServerDir() + '/nginx_conf.md5' + # if not os.path.exists(ng_conf_md5_file): + # ng_conf_md5 = mw.md5(content) + # mw.writeFile(ng_conf_md5_file, ng_conf_md5) + # else: + # ng_conf_md5 = mw.writeFile(ng_conf_md5_file).strip() + # 主配置文件 nconf = getServerDir() + '/nginx/conf/nginx.conf' - # if not os.path.exists(nconf): mw.writeFile(nconf, content) # lua配置