feat: one-line installer + configurable reconnect attempts#33
Merged
Conversation
install.sh handles install, update, and uninstall in a single curl | sudo bash. SHA256-verifies the release tarball against checksums.txt, creates a dedicated flashduty service user and hardened systemd unit on Linux, and falls back to a binary-only install on macOS / non-systemd hosts. Env file is never overwritten on re-install. Matching CI workflow runs shellcheck, parse checks, and a 10-scenario Docker smoke test. Separately, wire --max-attempts / FLASHDUTY_RUNNER_MAX_ATTEMPTS through the WebSocket client so operators can raise or uncap the reconnect limit (0 = unlimited, default 30). READMEs lead with the one-liner above the manual install block; full design spec is checked in at docs/superpowers/specs/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 tasks
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
install.sh(Linux + macOS): one-linecurl | sudo bashinstall / update / uninstall with SHA256 verification, hardened systemd unit, and env-file preservation across updates.--max-attempts/FLASHDUTY_RUNNER_MAX_ATTEMPTS(0 = unlimited, default 30).docs/superpowers/specs/2026-04-23-install-script-design.md.Test plan
shellcheck -s sh install.shcleanubuntu:22.04: install / no-op / env preservation / .bak on update / uninstall-keeps-config / --purge wipes / exit 4 (checksum) / exit 5 (missing version) / exit 6 (no token on non-tty) / STATE_DIR symlink refused.github/workflows/install-sh.yml(shellcheck + parse + docker smoke on push/PR)daemon-reload+enable --now)🤖 Generated with Claude Code