Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
install.api
Commits
c9f7763d
Commit
c9f7763d
authored
Mar 12, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
映射数据卷的时候,back_up_dir文件会丢失,重新创建一下
parent
f116fc37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
info_service.py
app/info/info_service.py
+4
-0
No files found.
app/info/info_service.py
View file @
c9f7763d
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment