mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 02:04:07 +08:00
feat(grafana-cli): minor changes
This commit is contained in:
@ -28,9 +28,9 @@ func ShouldUpgrade(installed string, remote m.Plugin) bool {
|
||||
}
|
||||
|
||||
func upgradeAllCommand(c CommandLine) error {
|
||||
pluginDir := c.GlobalString("path")
|
||||
pluginsDir := c.GlobalString("pluginsDir")
|
||||
|
||||
localPlugins := s.GetLocalPlugins(pluginDir)
|
||||
localPlugins := s.GetLocalPlugins(pluginsDir)
|
||||
|
||||
remotePlugins, err := s.ListAllPlugins(c.GlobalString("repo"))
|
||||
|
||||
@ -53,7 +53,7 @@ func upgradeAllCommand(c CommandLine) error {
|
||||
for _, p := range pluginsToUpgrade {
|
||||
log.Infof("Upgrading %v \n", p.Id)
|
||||
|
||||
s.RemoveInstalledPlugin(pluginDir, p.Id)
|
||||
s.RemoveInstalledPlugin(pluginsDir, p.Id)
|
||||
InstallPlugin(p.Id, "", c)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user