Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeJoin Script: improve clean up message when using package manager #48743

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

marcoandredinis
Copy link
Contributor

When re-running the node join script, the script refused to continue because it detected teleport already on the system. The script had a couple of instructions that removed teleport from the system.
One of the steps is the removal of the teleport binary. However, it would recommend the removal of the binaries even for systems that had package managers. This fails because, even if the binaries (teleport, tsh, tctl) are removed, the package manager will still refuse to install teleport again because it was not removed from the package manager database.

This PR changes the script, so that if it detects a package manager, it will instead ask the user to remove the teleport package and not directly removing the binaries.

Demo:
image

When re-running the node join script, the script refused to continue
because it detected teleport already on the system.
The script had a couple of instructions that removed teleport from the
system.
One of the steps is the removal of the teleport binary.
However, it would recommend the removal of the binaries even for systems
that had package managers. This fails because, even if the binaries
(teleport, tsh, tctl) are removed, the package manager will still refuse
to install teleport again because it was not removed from the package
manager database.

This PR changes the script, so that if it detects a package manager, it
will instead ask the user to remove the teleport package and not
directly removing the binaries.
@marcoandredinis marcoandredinis added support-load This issue generates support load no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 backport/branch/v16 backport/branch/v17 labels Nov 11, 2024
@marcoandredinis marcoandredinis added no-changelog Indicates that a PR does not require a changelog entry and removed no-changelog Indicates that a PR does not require a changelog entry labels Nov 13, 2024
@marcoandredinis marcoandredinis added this pull request to the merge queue Nov 13, 2024
Merged via the queue into master with commit b5cef24 Nov 13, 2024
43 of 44 checks passed
@marcoandredinis marcoandredinis deleted the marco/nodejoin_clean_remove_package branch November 13, 2024 09:20
@public-teleport-github-review-bot

@marcoandredinis See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v15 backport/branch/v16 backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/sm support-load This issue generates support load
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants