From d078b285a26831a0f42e458093e737f09f8a98d3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 29 Nov 2024 18:14:02 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 9ba91330c..d323af92f 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -564,11 +564,11 @@ def installPreInspection(): if __name__ == "__main__": + + version = '1.27.1' version_pl = getServerDir() + "/version.pl" - if not os.path.exists(version_pl): - print('error') - exit(-1) - version = mw.readFile(version_pl) + if os.path.exists(version_pl): + version = mw.readFile(version_pl) func = sys.argv[1]