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
3d348e2f
Commit
3d348e2f
authored
Mar 23, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验出错修正
parent
15b3130e
Pipeline
#21424
passed with stage
in 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
upgrade_service.py
app/upgrade/upgrade_service.py
+1
-1
install_docker.py
static_file/system_file/install_docker.py
+2
-2
No files found.
app/upgrade/upgrade_service.py
View file @
3d348e2f
...
...
@@ -503,7 +503,7 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym
'''
out
,
err
=
ssh
.
exec_command
(
'docker -v'
)
if
'Docker version'
not
in
out
or
'Docker version'
not
in
err
:
if
'Docker version'
not
in
out
:
logger
.
info
(
'验证远端服务器是否安装docker日志:{}'
.
format
(
err
))
logger
.
info
(
'远程升级失败'
)
raise
HSException
(
'远端服务器未安装docker,请先安装后再升级'
)
static_file/system_file/install_docker.py
View file @
3d348e2f
...
...
@@ -127,8 +127,8 @@ if __name__ == "__main__":
close_firewalld
()
install_docker
()
install_docker_compose
()
os
.
system
(
'mkdir /huansi'
)
os
.
system
(
'mkdir /huansi/upgrade'
)
os
.
system
(
'mkdir
-p
/huansi'
)
os
.
system
(
'mkdir
-p
/huansi/upgrade'
)
print
(
'*****************************************************'
)
print
(
'********服务器需要重启,请输入reboot重启服务器*************'
)
print
(
'*****************************************************'
)
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