From 5c851db77775854684f5533b6cfb51dd9571a8f6 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 22 Jun 2022 13:44:35 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index d686f78d3..8875bb4e7 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -139,7 +139,7 @@ def confReplace(): # 静态配置 static_conf = getServerDir() + '/nginx/conf/enable-php-00.conf' - if os.path.exists(static_conf): + if not os.path.exists(static_conf): mw.writeFile(static_conf, '') # give nginx root permission