File size: 581 Bytes
da0ce7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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