Commit c9f7763d authored by 金凯强's avatar 金凯强 🎨

映射数据卷的时候,back_up_dir文件会丢失,重新创建一下

parent f116fc37
...@@ -106,6 +106,10 @@ values ...@@ -106,6 +106,10 @@ values
session.exec_sql(sql_str) session.exec_sql(sql_str)
# 备份升级文件 # 备份升级文件
# 映射数据卷的时候,back_up_dir文件会丢失,重新创建一下
if os.path.exists(back_up_dir):
os.mkdir(back_up_dir)
upgrade_back_up_dir = os.path.join(back_up_dir, upgrade_no) upgrade_back_up_dir = os.path.join(back_up_dir, upgrade_no)
if not os.path.exists(upgrade_back_up_dir): if not os.path.exists(upgrade_back_up_dir):
os.mkdir(upgrade_back_up_dir) os.mkdir(upgrade_back_up_dir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment