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
191caa6d
Commit
191caa6d
authored
Nov 04, 2021
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
738b1e40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
raspberryChan.go
pkg/app/raspberryChan.go
+5
-3
No files found.
pkg/app/raspberryChan.go
View file @
191caa6d
...
...
@@ -65,10 +65,10 @@ func RaspberryChan() {
case
"RESTART"
:
err
:=
restartNode
()
if
err
!=
nil
{
tlog
.
Error
(
"RaspberryChan
deleteBackup
fail "
,
"err"
,
err
)
tlog
.
Error
(
"RaspberryChan
RESTART
fail "
,
"err"
,
err
)
}
updateJobMap
(
value
.
JobID
,
err
)
tlog
.
Info
(
"RaspberryChan
deleteBackup
success"
,
"err"
,
nil
)
tlog
.
Info
(
"RaspberryChan
RESTART
success"
,
"err"
,
nil
)
case
"RESET"
:
err
:=
resetNode
()
if
err
!=
nil
{
...
...
@@ -97,12 +97,14 @@ func RaspberryChan() {
tlog
.
Error
(
"RaspberryChan nodeUpdate fail "
,
"err"
,
err
)
}
updateJobMap
(
value
.
JobID
,
err
)
tlog
.
Info
(
"RaspberryChan nodeUpdate"
,
"err"
,
err
)
case
"CLEARLOG"
:
//清理日志 为其他操作做准备
err
:=
clearLog
()
if
err
!=
nil
{
tlog
.
Error
(
"RaspberryChan clearLog fail "
,
"err"
,
err
)
}
updateJobMap
(
value
.
JobID
,
err
)
tlog
.
Info
(
"RaspberryChan clearLog"
,
"err"
,
err
)
default
:
tlog
.
Error
(
"RaspberryChan not support type"
,
"msg"
,
value
.
Name
)
updateJobMap
(
value
.
JobID
,
errors
.
New
(
"RaspberryChan not support type"
))
...
...
@@ -153,7 +155,7 @@ func nodeUpdate() error {
}
tlog
.
Info
(
"nodeupdate"
,
"node version"
,
pai
.
BtyVersion
.
App
,
"last version"
,
latestVersion
)
if
util
.
VersionCompare
(
v
ersion
)
<=
util
.
VersionCompare
(
pai
.
BtyVersion
.
App
)
{
if
util
.
VersionCompare
(
latestV
ersion
)
<=
util
.
VersionCompare
(
pai
.
BtyVersion
.
App
)
{
return
nil
}
name
:=
setting
.
BityuanSetting
.
Name
+
"_"
+
latestVersion
+
".tar.gz"
...
...
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