Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ae9c07

Browse files
committed
Merge branch '389-permission-flags' into 'master'
fix(engine): change permissions on the instance_id file and its directory (#389) Closes #389 See merge request postgres-ai/database-lab!555
2 parents 79acecd + 89741fd commit 5ae9c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎engine/pkg/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ func LoadInstanceID() (string, error) {
7575
instanceID = xid.New().String()
7676
log.Dbg("no instance_id file was found, generate new instance ID", instanceID)
7777

78-
if err := os.MkdirAll(path.Dir(idFilepath), 0644); err != nil {
78+
if err := os.MkdirAll(path.Dir(idFilepath), 0744); err != nil {
7979
return "", fmt.Errorf("failed to make directory meta: %w", err)
8080
}
8181

82-
return instanceID, os.WriteFile(idFilepath, []byte(instanceID), 0544)
82+
return instanceID, os.WriteFile(idFilepath, []byte(instanceID), 0644)
8383
}
8484

8585
return instanceID, fmt.Errorf("failed to load instanceid, %w", err)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /