mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 05:33:49 +03:00
core: MkdirAll appDataDir in InstanceID with 0o700 (#6340)
appDataDir components should be searchable (u+x) when they are created, or else Caddy is unable to start with an empty HOME.
This commit is contained in:
parent
e6f46c8d78
commit
a52917a37d
1 changed files with 1 additions and 1 deletions
2
caddy.go
2
caddy.go
|
@ -869,7 +869,7 @@ func InstanceID() (uuid.UUID, error) {
|
|||
if err != nil {
|
||||
return uuid, err
|
||||
}
|
||||
err = os.MkdirAll(appDataDir, 0o600)
|
||||
err = os.MkdirAll(appDataDir, 0o700)
|
||||
if err != nil {
|
||||
return uuid, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue