Skip to content

Commit 84a2e72

Browse files
lucarin91Xayton
andauthored
Update internal/update/apt/service.go
Co-authored-by: Alby <[email protected]>
1 parent f7f7a90 commit 84a2e72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/update/apt/service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ func (s *Service) UpgradePackages(ctx context.Context, names []string) (<-chan u
8383
defer s.lock.Unlock()
8484
defer close(eventsCh)
8585

86-
// We try anyway to restart the service.
86+
// At the end of the upgrade, always try to restart the services (that need it).
87+
// This makes sure key services are restarted even if an error happens in the upgrade steps (for examples container images download).
8788
defer func() {
8889
eventsCh <- update.NewDataEvent(update.RestartEvent, "Upgrade completed. Restarting ...")
8990

0 commit comments

Comments
 (0)