ensure lowercase backend in the command

This commit is contained in:
Willy Kloucek
2021-10-27 12:53:25 +02:00
parent 405809f13a
commit ef406c8baa
2 changed files with 7 additions and 5 deletions
+2
View File
@@ -30,6 +30,8 @@ func Server(cfg *config.Config) *cli.Command {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
cfg.Repo.Backend = strings.ToLower(cfg.Repo.Backend)
// When running on single binary mode the before hook from the root command won't get called. We manually
// call this before hook from ocis command, so the configuration can be loaded.
if !cfg.Supervised {