[teleport-update] Warn instead of erroring when disabling the deprecated updater (#51759)

* Warn instead of erroring when disabling old updater

* Update lib/service/service.go

* Update lib/service/service.go
This commit is contained in:
Stephen Levine
2025-02-03 17:43:20 +00:00
committed by GitHub
parent 593988fafc
commit 5fa17d4d31
+2 -1
View File
@@ -1288,7 +1288,8 @@ func NewTeleport(cfg *servicecfg.Config) (*TeleportProcess, error) {
return nil, trace.Wrap(err)
}
if err := driver.ForceNop(process.ExitContext()); err != nil {
return nil, trace.Wrap(err)
process.logger.WarnContext(process.ExitContext(), "Unable to disable the teleport-upgrade command provided by the deprecated teleport-ent-updater package.", "error", err)
process.logger.WarnContext(process.ExitContext(), "If the deprecated teleport-ent-updater package is installed, please ensure /etc/teleport-upgrade.d/schedule contains 'nop'.")
}
case types.UpgraderKindSystemdUnit:
process.RegisterFunc("autoupdates.endpoint.export", func() error {