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
625c5df0
Commit
625c5df0
authored
Dec 28, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新唯一标识为 /etc/machine-id
parent
cfec11b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cmd.go
pkg/cmd/cmd.go
+1
-1
No files found.
pkg/cmd/cmd.go
View file @
625c5df0
...
@@ -89,7 +89,7 @@ func GetLocalUUID() string {
...
@@ -89,7 +89,7 @@ func GetLocalUUID() string {
}
}
func
GetLocalUUID2
()
string
{
func
GetLocalUUID2
()
string
{
cmd
:=
exec
.
Command
(
"
dmidecode"
,
"-s"
,
"system-uu
id"
)
cmd
:=
exec
.
Command
(
"
cat"
,
"/etc/machine-
id"
)
var
buf
,
errbuf
bytes
.
Buffer
var
buf
,
errbuf
bytes
.
Buffer
cmd
.
Stdout
=
&
buf
cmd
.
Stdout
=
&
buf
cmd
.
Stderr
=
&
errbuf
cmd
.
Stderr
=
&
errbuf
...
...
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