Skip to content

Commit

Permalink
Server: genCert now properly generates certificate folder in unix sys…
Browse files Browse the repository at this point in the history
…tems. Fixes #34
  • Loading branch information
luskaner committed Aug 31, 2024
1 parent 32a4010 commit 7dd720a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CertificatePairFolder(executablePath string) string {
}
folder := filepath.Join(parentDir, "resources", "certificates")
if _, err := os.Stat(folder); os.IsNotExist(err) {
if os.Mkdir(folder, os.ModeDir) != nil {
if os.Mkdir(folder, 0755) != nil {
return ""
}
}
Expand Down

0 comments on commit 7dd720a

Please sign in to comment.