Skip to content

Commit 3672c3f

Browse files
committed
prune system after update
1 parent c56dabc commit 3672c3f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

installer/docker/plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func SetPluginsConfigs(conf *config.Config, stack *StackConfig) error {
4444
correlationPipeline := PluginsConfig{}
4545
correlationPipeline.Plugins = make(map[string]PluginConfig)
4646
correlationPipeline.Plugins["correlation"] = PluginConfig{
47-
Order: []string{"com.utmstack.alerts"},
47+
Order: []string{"com.utmstack.alerts", "com.utmstack.soc-ai"},
4848
}
4949

5050
inputPipeline := PluginsConfig{}

installer/updater/client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ func (c *UpdaterClient) UpdateToNewVersion(version, edition, changelog string) e
147147
config.Logger().Info("UTMStack updated to version %s-%s", version, edition)
148148
config.Updating = false
149149

150+
err = utils.RunCmd("docker", "system", "prune", "-f")
151+
if err != nil {
152+
config.Logger().ErrorF("error cleaning up Docker system after update: %v", err)
153+
}
154+
150155
return nil
151156
}
152157

0 commit comments

Comments
 (0)