From 9925daa363c9754155ae14d773dae83dca5be4da Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 17 May 2024 05:08:45 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index acdad65df..b77252960 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3388,8 +3388,8 @@ def doFullSyncUser(version=''): sync_mdb = getSyncMysqlDB(sync_db,sync_sign) bak_file = '/tmp/tmp.sql' - # if os.path.exists(bak_file): - # os.system("rm -rf " + bak_file) + if os.path.exists(bak_file): + os.system("rm -rf " + bak_file) writeDbSyncStatus({'code': 0, 'msg': '开始同步...', 'progress': 0}) dmp_option = '' @@ -3482,8 +3482,8 @@ def doFullSyncUser(version=''): cos = time_all_e - time_all_s writeDbSyncStatus({'code': 6, 'msg': '总耗时:'+str(int(cos))+'秒,从库重启完成...', 'progress': 100}) - # if os.path.exists(bak_file): - # os.system("rm -rf " + bak_file) + if os.path.exists(bak_file): + os.system("rm -rf " + bak_file) return True