From 66a01205e6433f503edf86d8fcb1895d72955014 Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Mon, 12 Oct 2020 13:36:24 -0600 Subject: [PATCH] MM-28702 - call InitEnterprise() to initialize Enterprise for cli (#15683) * call InitServer() to initialize Enterprise for cli * only call initEnterprise * back to InitServer() * move below license load Co-authored-by: Mattermod --- cmd/mattermost/commands/init.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/mattermost/commands/init.go b/cmd/mattermost/commands/init.go index effa626cb9..63b53067df 100644 --- a/cmd/mattermost/commands/init.go +++ b/cmd/mattermost/commands/init.go @@ -46,6 +46,7 @@ func InitDBCommandContext(configDSN string) (*app.App, error) { if model.BuildEnterpriseReady == "true" { a.Srv().LoadLicense() } + a.InitServer() return a, nil }