aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnton Kovalenko <[email protected]>2024-05-30 13:38:09 +0300
committerGitHub <[email protected]>2024-05-30 10:38:09 +0000
commita52917a37dcc40eda1ff5034103d4a89883de2aa (patch)
tree7b03461ce842235ed8ee89538b1bcca305d3e1ed
parente6f46c8d78b77d0aefe50750dfd6f6a18ba138e5 (diff)
downloadcaddy-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.
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index 1e0eacd2b..27acabb12 100644
--- a/caddy.go
+++ b/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
}