You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
u.Log.ErrorContext(ctx, "Default Teleport systemd service would be removed, and --force was not passed. Refusing to remove Teleport from this system.")
458
+
u.Log.ErrorContext(ctx, "Default Teleport systemd service would be removed, and --force was not passed.")
459
+
u.Log.ErrorContext(ctx, "Refusing to remove Teleport from this system.")
459
460
returntrace.Errorf("unable to remove Teleport completely without --force")
460
461
} else {
461
-
u.Log.WarnContext(ctx, "Default Teleport systemd service will be removed since --force was passed. Teleport will be removed from this system.")
462
+
u.Log.WarnContext(ctx, "Default Teleport systemd service will be removed since --force was passed.")
463
+
u.Log.WarnContext(ctx, "Teleport will be removed from this system.")
462
464
}
463
465
}
464
466
returnu.removeWithoutSystem(ctx, cfg)
465
467
}
466
468
revert, err:=u.Installer.LinkSystem(ctx)
467
469
iferrors.Is(err, ErrNoBinaries) {
468
470
if!force {
469
-
u.Log.ErrorContext(ctx, "No packaged installation of Teleport was found, and --force was not passed. Refusing to remove Teleport from this system.")
471
+
u.Log.ErrorContext(ctx, "No packaged installation of Teleport was found, and --force was not passed.")
472
+
u.Log.ErrorContext(ctx, "Refusing to remove Teleport from this system.")
470
473
returntrace.Errorf("unable to remove Teleport completely without --force")
471
474
} else {
472
-
u.Log.WarnContext(ctx, "No packaged installation of Teleport was found, and --force was passed. Teleport will be removed from this system.")
475
+
u.Log.WarnContext(ctx, "No packaged installation of Teleport was found, and --force was passed.")
476
+
u.Log.WarnContext(ctx, "Teleport will be removed from this system.")
473
477
}
474
478
returnu.removeWithoutSystem(ctx, cfg)
475
479
}
476
480
iferr!=nil {
477
481
returntrace.Wrap(err, "failed to link")
478
482
}
479
483
480
-
u.Log.InfoContext(ctx, "Updater-managed installation of Teleport detected. Restoring packaged version of Teleport before removing.")
484
+
u.Log.InfoContext(ctx, "Updater-managed installation of Teleport detected.")
485
+
u.Log.InfoContext(ctx, "Restoring packaged version of Teleport before removing.")
481
486
482
487
revertConfig:=func(ctx context.Context) bool {
483
488
ifok:=revert(ctx); !ok {
@@ -523,7 +528,8 @@ func (u *Updater) Remove(ctx context.Context, force bool) error {
523
528
u.Log.ErrorContext(ctx, "Reverting symlinks due to failed restart.")
0 commit comments