summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-07-26 08:45:26 -0400
committerJoram Wilander <jwawilander@gmail.com>2018-07-26 08:45:26 -0400
commit8948b91d7a80169b12907e16581cfdd53bbb73f1 (patch)
treedd84c35a664c7787b8080920692dc943b58f5d31 /cmd
parentf8f80d80df1e27e2ed4dcc91518bf504ab7f3e34 (diff)
downloadchat-8948b91d7a80169b12907e16581cfdd53bbb73f1.tar.gz
chat-8948b91d7a80169b12907e16581cfdd53bbb73f1.tar.bz2
chat-8948b91d7a80169b12907e16581cfdd53bbb73f1.zip
unpack prepacked plugins on plugins initialization (#9149)
* unpack prepackaged plugins on plugins initialization * leverage utils.FindDir
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mattermost/commands/plugin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mattermost/commands/plugin.go b/cmd/mattermost/commands/plugin.go
index 56a57ddf1..810e972ad 100644
--- a/cmd/mattermost/commands/plugin.go
+++ b/cmd/mattermost/commands/plugin.go
@@ -83,7 +83,7 @@ func pluginAddCmdF(command *cobra.Command, args []string) error {
return err
}
- if _, err := a.InstallPlugin(fileReader); err != nil {
+ if _, err := a.InstallPlugin(fileReader, false); err != nil {
CommandPrintErrorln("Unable to add plugin: " + args[i] + ". Error: " + err.Error())
} else {
CommandPrettyPrintln("Added plugin: " + plugin)