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
2dabbd1b
Commit
2dabbd1b
authored
Dec 18, 2019
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5f696fc9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app.ini
conf/app.ini
+1
-1
pai.go
routers/api/v1/pai.go
+1
-1
No files found.
conf/app.ini
View file @
2dabbd1b
...
@@ -55,5 +55,5 @@ Auto=/home/pi/chain33-pai/auto.sh
...
@@ -55,5 +55,5 @@ Auto=/home/pi/chain33-pai/auto.sh
Start
=
/home/pi/chain33-pai/star.sh
Start
=
/home/pi/chain33-pai/star.sh
StartUp
=
/home/pi/chain33-pai/startup.sh
StartUp
=
/home/pi/chain33-pai/startup.sh
DownloadUrl
=
https://bty33.oss-cn-shanghai.aliyuncs.com/raspberry/
DownloadUrl
=
https://bty33.oss-cn-shanghai.aliyuncs.com/raspberry/
DownloadDir
=
temp
-
pai
DownloadDir
=
temp
_
pai
VersionUrl
=
http://112.124.4.47:8800/pai/latestversion
VersionUrl
=
http://112.124.4.47:8800/pai/latestversion
routers/api/v1/pai.go
View file @
2dabbd1b
...
@@ -83,7 +83,7 @@ func UpdatePai(c *gin.Context) {
...
@@ -83,7 +83,7 @@ func UpdatePai(c *gin.Context) {
return
return
}
}
//备份原文件 确保没有alias 关联
//备份原文件 确保没有alias 关联
bak
:=
exec
.
Command
(
"
mv
"
,
setting
.
Chain33Pai
.
Name
,
setting
.
Chain33Pai
.
Name
+
".bak"
)
bak
:=
exec
.
Command
(
"
cp
"
,
setting
.
Chain33Pai
.
Name
,
setting
.
Chain33Pai
.
Name
+
".bak"
)
err
=
bak
.
Start
()
err
=
bak
.
Start
()
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Println
(
"bak"
,
err
)
log
.
Println
(
"bak"
,
err
)
...
...
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