aureon-os / scripts /shell /start /restart_bot.sh
GaryLeckey's picture
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 19)
da0ce7b verified
Raw History Blame Contribute Delete
581 Bytes
#!/usr/bin/env bash
# Legacy start route: fixed isolated protection HOLD only.
set -euo pipefail
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
REPO_ROOT="$(CDPATH= cd -- "$SCRIPT_DIR/../../.." && pwd -P)"
PYTHON_EXE="$REPO_ROOT/.venv/bin/python"
BOOTSTRAP="$REPO_ROOT/scripts/bootstrap/protected_bootstrap_v05.py"
if [[ ! -x "$PYTHON_EXE" || ! -r "$BOOTSTRAP" ]]; then
echo "Fixed protected runtime bootstrap unavailable; refusing launch." >&2
exit 1
fi
exec "$PYTHON_EXE" -I -S -B "$BOOTSTRAP" --target-id unified-market-trader