This commit is contained in:
Michael Quigley 2023-01-09 17:57:57 -05:00
parent 6cec74c2ec
commit c4c497b88e
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -5,6 +5,7 @@ import (
"github.com/openziti-test-kitchen/zrok/tui" "github.com/openziti-test-kitchen/zrok/tui"
"github.com/pkg/errors" "github.com/pkg/errors"
"os" "os"
"path/filepath"
) )
const V = "v0.3" const V = "v0.3"
@ -42,6 +43,9 @@ func writeMetadata() error {
if err != nil { if err != nil {
return err return err
} }
if err := os.MkdirAll(filepath.Dir(mf), os.FileMode(0700)); err != nil {
return err
}
if err := os.WriteFile(mf, data, os.FileMode(0400)); err != nil { if err := os.WriteFile(mf, data, os.FileMode(0400)); err != nil {
return err return err
} }