The pipx/mcp-CLI step and the Hermes goose installer both called `sudo -u <user> ...` unconditionally. On minimal Linux images reached via `ssh root@host` (no SUDO_USER, and often no `sudo` binary at all — seen live on strong), this failed with "sudo: command not found" and silently no-opped the mcp CLI install. Added a run_as() helper that only shells out to sudo when there's a real invoking user distinct from root. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 KiB
Executable File
26 KiB
Executable File