From 683f215bd9c3fdc6518675bea5715c872d65be27 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Mon, 18 Mar 2019 14:45:45 +0000 Subject: [PATCH] [MM-14254] Add elasticsearch initialisation to the cmd (#10405) --- cmd/mattermost/commands/init.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/mattermost/commands/init.go b/cmd/mattermost/commands/init.go index 7acea66796..f36149db9d 100644 --- a/cmd/mattermost/commands/init.go +++ b/cmd/mattermost/commands/init.go @@ -35,7 +35,10 @@ func InitDBCommandContext(configDSN string) (*app.App, error) { } model.AppErrorInit(utils.T) - s, err := app.NewServer(app.Config(configDSN, false)) + s, err := app.NewServer( + app.Config(configDSN, false), + app.StartElasticsearch, + ) if err != nil { return nil, err }