Simplify environment creation for server

This commit is contained in:
Dane Everitt
2020-09-12 21:48:04 -07:00
parent be49e08f4f
commit ce2659fdd7
4 changed files with 13 additions and 33 deletions

View File

@@ -782,6 +782,10 @@ func (fs *Filesystem) EnsureDataDirectory() error {
if err := os.MkdirAll(fs.Path(), 0700); err != nil {
return errors.WithStack(err)
}
if err := fs.Chown("/"); err != nil {
fs.Server.Log().WithField("error", err).Warn("failed to chown server data directory")
}
}
return nil