diff options
author | Anton Kovalenko <[email protected]> | 2024-05-30 13:38:09 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-30 10:38:09 +0000 |
commit | a52917a37dcc40eda1ff5034103d4a89883de2aa (patch) | |
tree | 7b03461ce842235ed8ee89538b1bcca305d3e1ed /caddy.go | |
parent | e6f46c8d78b77d0aefe50750dfd6f6a18ba138e5 (diff) | |
download | caddy-a52917a37dcc40eda1ff5034103d4a89883de2aa.tar.gz caddy-a52917a37dcc40eda1ff5034103d4a89883de2aa.zip |
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.
Diffstat (limited to 'caddy.go')
-rw-r--r-- | caddy.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |