diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 121190493..80bc3e3ea 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -133,9 +133,7 @@ def confReplace(): # 主配置文件 nconf = getServerDir() + '/nginx/conf/nginx.conf' - __content = mw.readFile(nconf) - if __content.find('#user'): - mw.writeFile(nconf, content) + mw.writeFile(nconf, content) # 静态配置 static_conf = getServerDir() + '/nginx/conf/enable-php-00.conf'