From 8edd40393b4f27c72b14fd75d8d264d3eeface56 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 12 Dec 2023 14:44:23 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 01449d8a9..3c810e121 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -94,10 +94,9 @@ def initDreplace(): os.mkdir(data_dir) install_ok = getServerDir() + "/install.lock" - if not os.path.exists(install_ok): - mw.writeFile(install_ok, 'ok') - else: + if os.path.exists(install_ok): return file_bin + mw.writeFile(install_ok, 'ok') # initd replace content = mw.readFile(file_tpl)