install/docs: add tailscale-style bootstrap flow for baudbot#68
Merged
Conversation
Greptile SummaryUpdated Quick Start to download the install script as the current user before executing with sudo, avoiding the security risk of piping remote content directly to a shell. Also clarified that the installer publishes git-free runtime releases to Changes:
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 6f0e92c |
0c684cb to
c2d2644
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bootstrap.shas a non-root entrypoint that installs a lightweightbaudbotCLI into/usr/local/bin(using sudo/doas only when needed)baudbot install(which downloads/runsinstall.shand publishes/opt/baudbotrelease snapshots)curl .../bootstrap.sh | bashbaudbot installinstall.shheader comments to document the new flowbootstrap.sh+baudbot install) instead of callinginstall.shdirectlyfile://overrides in CI so the uploaded source bundle is tested rather than GitHub mainWhy
This provides the desired single-command bootstrap UX (similar to Tailscale) without requiring users to manually chmod temp files or run
sudo curl ... | bash.Testing
bash -n bootstrap.shbash -n bin/baudbotbash -n install.shbash -n bin/ci/setup-ubuntu.shbash -n bin/ci/setup-arch.shBAUDBOT_BOOTSTRAP_TARGET=/tmp/baudbot-bootstrap-test BAUDBOT_CLI_URL=https://raw.githubusercontent.com/modem-dev/baudbot/benvinegar/readme-quickstart-no-sudo-curl/bin/baudbot bash -c "curl -fsSL https://raw.githubusercontent.com/modem-dev/baudbot/benvinegar/readme-quickstart-no-sudo-curl/bootstrap.sh | bash"bin/test.sh shell