Commit 4d5fcc13 authored by szh's avatar szh

升级节点去掉重启 由用户手动重启树莓派

parent cf544656
...@@ -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")
} }
......
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