summaryrefslogtreecommitdiffstats
path: root/cmd/platform/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/server.go')
-rw-r--r--cmd/platform/server.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go
index 36118d007..51f5fa67e 100644
--- a/cmd/platform/server.go
+++ b/cmd/platform/server.go
@@ -60,13 +60,17 @@ func runServer(configFileLocation string) {
l4g.Info(utils.T("mattermost.working_dir"), pwd)
l4g.Info(utils.T("mattermost.config_file"), utils.FindConfigFile(configFileLocation))
- if err := utils.TestFileConnection(); err != nil {
- l4g.Error("Problem with file storage settings: " + err.Error())
- }
-
a := app.New(app.ConfigFile(configFileLocation))
defer a.Shutdown()
+ backend, err := a.FileBackend()
+ if err == nil {
+ err = backend.TestConnection()
+ }
+ if err != nil {
+ l4g.Error("Problem with file storage settings: " + err.Error())
+ }
+
if model.BuildEnterpriseReady == "true" {
a.LoadLicense()
}