Commit 4d5fcc13 authored by szh's avatar szh

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

parent cf544656
......@@ -259,14 +259,14 @@ func UpdateNode(c *gin.Context){
app.DPercent.Flag = false
return
}
err=app.StartProcess(setting.Chain33Pai.Auto)
if err != nil {
app.UpdateInfo.Flag = true
app.BityuanFlag = false
appG.Response(http.StatusOK, e.NODE_ERROR,"start auto sh err")
return
}
//err=app.StartProcess(setting.Chain33Pai.Auto)
//
//if err != nil {
// app.UpdateInfo.Flag = true
// app.BityuanFlag = false
// appG.Response(http.StatusOK, e.NODE_ERROR,"start auto sh err")
// return
//}
app.BityuanFlag = false
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