Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
4d5fcc13
Commit
4d5fcc13
authored
Jan 08, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级节点去掉重启 由用户手动重启树莓派
parent
cf544656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
node.go
routers/api/v1/node.go
+8
-8
No files found.
routers/api/v1/node.go
View file @
4d5fcc13
...
@@ -259,14 +259,14 @@ func UpdateNode(c *gin.Context){
...
@@ -259,14 +259,14 @@ func UpdateNode(c *gin.Context){
app
.
DPercent
.
Flag
=
false
app
.
DPercent
.
Flag
=
false
return
return
}
}
err
=
app
.
StartProcess
(
setting
.
Chain33Pai
.
Auto
)
//
err=app.StartProcess(setting.Chain33Pai.Auto)
//
if
err
!=
nil
{
//
if err != nil {
app
.
UpdateInfo
.
Flag
=
true
//
app.UpdateInfo.Flag = true
app
.
BityuanFlag
=
false
//
app.BityuanFlag = false
appG
.
Response
(
http
.
StatusOK
,
e
.
NODE_ERROR
,
"start auto sh err"
)
//
appG.Response(http.StatusOK, e.NODE_ERROR,"start auto sh err")
return
//
return
}
//
}
app
.
BityuanFlag
=
false
app
.
BityuanFlag
=
false
appG
.
Response
(
http
.
StatusOK
,
e
.
SUCCESS
,
"update job started"
)
appG
.
Response
(
http
.
StatusOK
,
e
.
SUCCESS
,
"update job started"
)
}
}
...
...
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