mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:49:25 +08:00
Update tool_migrate.py
This commit is contained in:
@@ -97,7 +97,7 @@ def migrateSiteHotLogs(site_name, query_date):
|
|||||||
import shutil
|
import shutil
|
||||||
print(f"[{site_name}] 备份 {hot_db} -> {hot_db_tmp} ...")
|
print(f"[{site_name}] 备份 {hot_db} -> {hot_db_tmp} ...")
|
||||||
mw.writeFile(migrating_flag, "yes")
|
mw.writeFile(migrating_flag, "yes")
|
||||||
time.sleep(0.5)
|
time.sleep(1)
|
||||||
shutil.copy(hot_db, hot_db_tmp)
|
shutil.copy(hot_db, hot_db_tmp)
|
||||||
if not os.path.exists(hot_db_tmp):
|
if not os.path.exists(hot_db_tmp):
|
||||||
return mw.returnMsg(False, f"{site_name} migrating fail, copy tmp file!")
|
return mw.returnMsg(False, f"{site_name} migrating fail, copy tmp file!")
|
||||||
|
|||||||
Reference in New Issue
Block a user