mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +02:00
zero/core: set drwx------ for cache dir (#4764)
This commit is contained in:
parent
89a76fe00f
commit
d610b9c25c
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,8 @@ func getBootstrapConfigFileName() (string, error) {
|
|||
}
|
||||
|
||||
dir := filepath.Join(cacheDir, "pomerium")
|
||||
if err := os.MkdirAll(dir, 0644); err != nil {
|
||||
return "", err
|
||||
if err := os.MkdirAll(dir, 0o700); err != nil {
|
||||
return "", fmt.Errorf("error creating cache directory: %w", err)
|
||||
}
|
||||
|
||||
return filepath.Join(dir, "bootstrap.dat"), nil
|
||||
|
|
Loading…
Add table
Reference in a new issue