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:
Anton Kovalenko authored and GitHub committed 2024-05-30 10:38:09 +00:00
1 parent e6f46c8d78
commit a52917a37d
1 file changed
+1 -1
+1 -1
View File
@@ -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
}