unpack prepacked plugins on plugins initialization (#9149)

* unpack prepackaged plugins on plugins initialization

* leverage utils.FindDir
This commit is contained in:
Jesse Hallam
2018-07-26 08:45:26 -04:00
committed by Joram Wilander
parent f8f80d80df
commit 8948b91d7a
5 changed files with 37 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ func uploadPlugin(c *Context, w http.ResponseWriter, r *http.Request) {
}
defer file.Close()
manifest, unpackErr := c.App.InstallPlugin(file)
manifest, unpackErr := c.App.InstallPlugin(file, false)
if unpackErr != nil {
c.Err = unpackErr