mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-30 18:29:21 +08:00
[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user