feat: Allow file and directory creation modes to be configured

The defaults remain the same as before.
For now, the config options are global instead of per-user.
Note also that the BoltDB creation maintains the old default mode of 0640
since it's not really a user-facing filesystem manipulation.
Fixes #5316, #5200
This commit is contained in:
Vincent Lee authored and Henrique Dias committed 2025-07-22 07:56:52 +02:00
1 parent 5b7ea9f95a
commit 21ad653b7e
12 files changed
+73 -41

No files matched your search

+4
View File
@@ -65,6 +65,10 @@ you want to change. Other options will remain unchanged.`,
set.Branding.DisableUsedPercentage = mustGetBool(flags, flag.Name)
case "branding.files":
set.Branding.Files = mustGetString(flags, flag.Name)
case "file-mode":
set.FileMode = mustGetMode(flags, flag.Name)
case "dir-mode":
set.DirMode = mustGetMode(flags, flag.Name)
}
})