Skip to content

Commit

Permalink
better cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sclevine committed Jan 24, 2025
1 parent 807f8a5 commit 2e1c187
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/autoupdate/agent/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,19 +789,16 @@ func (u *Updater) notices(ctx context.Context) error {
return trace.Wrap(err, "failed to query Teleport systemd active status")
}
if !enabled && active {
//nolint:sloglint // sum of constants
u.Log.WarnContext(ctx, "Teleport is installed and started, but not configured to start on boot. "+
"After configuring teleport.yaml, you can enable it with: systemctl enable teleport")
u.Log.WarnContext(ctx, "Teleport is installed and started, but not configured to start on boot.")
u.Log.WarnContext(ctx, "After configuring teleport.yaml, you can enable it with: systemctl enable teleport")
}
if !active && enabled {
//nolint:sloglint // sum of constants
u.Log.WarnContext(ctx, "Teleport is installed and enabled at boot, but not running. "+
"After configuring teleport.yaml, you can start it with: systemctl start teleport")
u.Log.WarnContext(ctx, "Teleport is installed and enabled at boot, but not running.")
u.Log.WarnContext(ctx, "After configuring teleport.yaml, you can start it with: systemctl start teleport")
}
if !active && !enabled {
//nolint:sloglint // sum of constants
u.Log.WarnContext(ctx, "Teleport is installed, but not running or enabled at boot. "+
"After configuring teleport.yaml, you can enable and start it with: systemctl enable teleport --now")
u.Log.WarnContext(ctx, "Teleport is installed, but not running or enabled at boot.")
u.Log.WarnContext(ctx, "After configuring teleport.yaml, you can enable and start it with: systemctl enable teleport --now")
}
return nil
}
Expand Down

0 comments on commit 2e1c187

Please sign in to comment.