Refactor run-once.sh to transition from a manual helper to a reproducible
installation script.
- Replace interactive editor prompts with CLI argument parsing.
- Guarantee idempotency by using for atomic file placement
and for service management.
- Enhance security and reliability through explicit root checks,
strict mode (set -euo pipefail), and atomic environment file generation.
- Eliminate redundant cleanup logic in favor of overwrite semantics.