We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79acecd commit 89741fdCopy full SHA for 89741fd
engine/pkg/config/config.go
@@ -75,11 +75,11 @@ func LoadInstanceID() (string, error) {
75
instanceID = xid.New().String()
76
log.Dbg("no instance_id file was found, generate new instance ID", instanceID)
77
78
- if err := os.MkdirAll(path.Dir(idFilepath), 0644); err != nil {
+ if err := os.MkdirAll(path.Dir(idFilepath), 0744); err != nil {
79
return "", fmt.Errorf("failed to make directory meta: %w", err)
80
}
81
82
- return instanceID, os.WriteFile(idFilepath, []byte(instanceID), 0544)
+ return instanceID, os.WriteFile(idFilepath, []byte(instanceID), 0644)
83
84
85
return instanceID, fmt.Errorf("failed to load instanceid, %w", err)
0 commit comments