From ccf020bf6b45dce6fa4f8440a3d88ba6f3955eef Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 17 Aug 2023 11:14:56 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 1a7f03cad..02a7947a6 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -210,7 +210,10 @@ def initdUinstall(): def runLog(): - return getServerDir() + '/logs/mongodb.log' + f = getServerDir() + '/logs/mongodb.log' + if os.path.exists(f): + return f + return getServerDir() + '/logs.pl' def installPreInspection(version):