From f6dc31354e31fa3aa66316c992f90f7488699609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 16 Feb 2024 14:31:13 +0100 Subject: [PATCH] lotus-provider: Ensure tempdir exists on startup --- cmd/lotus-provider/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/lotus-provider/run.go b/cmd/lotus-provider/run.go index 2b6f4ef3b..5135f8a0b 100644 --- a/cmd/lotus-provider/run.go +++ b/cmd/lotus-provider/run.go @@ -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), tag.Insert(metrics.Version, build.BuildVersion), tag.Insert(metrics.Commit, build.CurrentCommit),