mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 14:22:20 +08:00
Plugins: Remove dead CLI code and use pkg/plugins for uninstall process (#67711)
* remove dead code and use pkg/plugins for uninstall process * fix linter
This commit is contained in:
@ -49,15 +49,16 @@ func (cmd Command) upgradeAllCommand(c utils.CommandLine) error {
|
||||
}
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
for _, p := range pluginsToUpgrade {
|
||||
logger.Infof("Updating %v \n", p.ID)
|
||||
|
||||
err := services.RemoveInstalledPlugin(pluginsDir, p.ID)
|
||||
err = uninstallPlugin(ctx, p.ID, c)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = installPlugin(context.Background(), p.ID, "", c)
|
||||
err = installPlugin(ctx, p.ID, "", c)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user