#!/bin/bash # ============================================================ # boot.sh — Direct Boot Bypass (for debugging only) # Skips config_fusion. Use this ONLY if you've pre-written: # ~/.openclaw/openclaw.json # ~/.hermes/config.yaml # and have all required env vars already exported in your shell. # # Normal startup path is: setup.sh → main.py # Debug startup path is: boot.sh → main.py (no config fusion) # ============================================================ set -euo pipefail export PATH="/home/missminute/hermes-venv/bin:/home/missminute/.local/bin:/home/missminute/.cargo/bin:/usr/local/bin:/usr/bin:/bin" export VIRTUAL_ENV="/home/missminute/hermes-venv" HERMES_PY="/home/missminute/hermes-venv/bin/python3" APP_DIR="/home/missminute/app" echo "[$(date '+%H:%M:%S')] [boot] Direct boot — skipping config fusion" echo "[$(date '+%H:%M:%S')] [boot] Ensure TELEGRAM_BOT_TOKEN, TELEGRAM_OWNER_ID, LLM_API_KEY are exported" # Verify required env vars for var in TELEGRAM_BOT_TOKEN TELEGRAM_OWNER_ID LLM_API_KEY LLM_BASE_URL LLM_MODEL; do if [ -z "${!var:-}" ]; then echo "[boot] ❌ Required env var $var is not set" exit 1 fi done echo "[$(date '+%H:%M:%S')] [boot] All env vars present — launching supervisor" exec "${HERMES_PY}" "${APP_DIR}/main.py"