lotus-provider: Ensure tempdir exists on startup
This commit is contained in:
parent
55a50727fa
commit
f6dc31354e
@ -78,6 +78,10 @@ var runCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := os.MkdirAll(os.TempDir(), 0755); err != nil {
|
||||||
|
log.Errorf("ensuring tempdir exists: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
ctx, _ := tag.New(lcli.DaemonContext(cctx),
|
ctx, _ := tag.New(lcli.DaemonContext(cctx),
|
||||||
tag.Insert(metrics.Version, build.BuildVersion),
|
tag.Insert(metrics.Version, build.BuildVersion),
|
||||||
tag.Insert(metrics.Commit, build.CurrentCommit),
|
tag.Insert(metrics.Commit, build.CurrentCommit),
|
||||||
|
Loading…
Reference in New Issue
Block a user