mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 06:42:09 +08:00
Preinstall: Allow to set a download URL (#96535)
This commit is contained in:

committed by
GitHub

parent
b544b8afff
commit
e0935246a3
@ -467,7 +467,7 @@ func (hs *HTTPServer) InstallPlugin(c *contextmodel.ReqContext) response.Respons
|
||||
}
|
||||
}
|
||||
|
||||
compatOpts := plugins.NewCompatOpts(hs.Cfg.BuildVersion, runtime.GOOS, runtime.GOARCH)
|
||||
compatOpts := plugins.NewAddOpts(hs.Cfg.BuildVersion, runtime.GOOS, runtime.GOARCH, "")
|
||||
ctx := repo.WithRequestOrigin(c.Req.Context(), "api")
|
||||
err := hs.pluginInstaller.Add(ctx, pluginID, dto.Version, compatOpts)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user