Files
pipelines/install.sh
T
alan ae6ba6ae10 Install authenticated native web proxy with user autostart
Register the existing native supervisor with launchd/systemd, include the dependency-free authenticated web proxy, detect Node, and keep the API loopback by default. Preserve existing web credentials and configured host harness defaults. Clarify single-step setup, lifecycle selection, and optional ntfy limits.

Checks: 44 mocked native installer/lifecycle tests; 8 entrypoint tests; 42 Docker installer tests; GOPROXY=off GOTOOLCHAIN=local go test ./internal/installation ./cmd/pipelines; sh -n install install.sh; git diff --check. No live install, deployment, restart, downloads, real autostart/login verification or native Linux verification.
2026-10-20 21:31:36 +01:00

26 lines
673 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")"
if ! command -v python3 >/dev/null 2>&1; then
echo "Python 3.9 or newer is required; install it and rerun ./install." >&2
exit 1
fi
python3 -c 'import sys; sys.exit(0 if sys.version_info >= (3, 9) else "Python 3.9 or newer is required")'
mode=${1:-}
case "$mode" in
--opencode|--pi)
harness=${mode#--}
shift
exec python3 scripts/setup-harness.py "$harness" "$@"
;;
--docker|docker)
if [ "$#" -gt 0 ]; then shift; fi
exec python3 scripts/setup-docker.py "$@"
;;
--native|native)
shift
exec python3 scripts/setup-native.py "$@"
;;
*) exec python3 scripts/setup-native.py "$@" ;;
esac