diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-01-04 13:41:15 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-01-04 13:41:15 -0500 |
commit | 4b1ffcb0bdefe383e078fb6dea67d1830a530eb5 (patch) | |
tree | 46f05005c2662449fc27660e22fbab521eab4321 | |
parent | 3e7a59b7b9c6289d71551eedc763188c2a99f6e5 (diff) | |
download | chat-4b1ffcb0bdefe383e078fb6dea67d1830a530eb5.tar.gz chat-4b1ffcb0bdefe383e078fb6dea67d1830a530eb5.tar.bz2 chat-4b1ffcb0bdefe383e078fb6dea67d1830a530eb5.zip |
Fixing enterprise commands (#4960)
-rw-r--r-- | cmd/platform/init.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/platform/init.go b/cmd/platform/init.go index 7e07cce8a..7cf941e9c 100644 --- a/cmd/platform/init.go +++ b/cmd/platform/init.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/mattermost/platform/api" + "github.com/mattermost/platform/model" "github.com/mattermost/platform/utils" "github.com/spf13/cobra" ) @@ -38,4 +39,7 @@ func initDBCommandContext(configFileLocation string) { api.NewServer() api.InitStores() + if model.BuildEnterpriseReady == "true" { + api.LoadLicense() + } } |