echo8900 commited on
Commit
08da1b7
·
verified ·
1 Parent(s): abf6e02

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -11
entrypoint.sh CHANGED
@@ -9,13 +9,6 @@ ts() { date -u +"%H:%M:%S"; }
9
  log() { echo "[$(ts)] [entrypoint] $*"; }
10
  warn() { echo "[$(ts)] [entrypoint] WARN: $*"; }
11
 
12
- # ----------------------------------------------------------------
13
- # Run diagnostics first - prints system info before anything else
14
- # ----------------------------------------------------------------
15
- if [ -f /app/diagnose.sh ]; then
16
- sh /app/diagnose.sh || true
17
- fi
18
-
19
  # ----------------------------------------------------------------
20
  # Storage: resolve OPENCLAW_HOME
21
  # Prefer /data (HF Storage Bucket). Fall back to /home/user.
@@ -71,10 +64,8 @@ export HF_TOKEN="${HF_TOKEN:-}"
71
  # ----------------------------------------------------------------
72
  # One-time setup (config write, webhook registration, seed files)
73
  # ----------------------------------------------------------------
74
- log "Running setup (timeout 60s)..."
75
- timeout 60 node /app/spaces/huggingface/setup-hf-config.mjs || {
76
- warn "Setup timed out or failed - continuing with existing config"
77
- }
78
  log "Setup done."
79
 
80
  # ----------------------------------------------------------------
 
9
  log() { echo "[$(ts)] [entrypoint] $*"; }
10
  warn() { echo "[$(ts)] [entrypoint] WARN: $*"; }
11
 
 
 
 
 
 
 
 
12
  # ----------------------------------------------------------------
13
  # Storage: resolve OPENCLAW_HOME
14
  # Prefer /data (HF Storage Bucket). Fall back to /home/user.
 
64
  # ----------------------------------------------------------------
65
  # One-time setup (config write, webhook registration, seed files)
66
  # ----------------------------------------------------------------
67
+ log "Running setup..."
68
+ node /app/spaces/huggingface/setup-hf-config.mjs || true
 
 
69
  log "Setup done."
70
 
71
  # ----------------------------------------------------------------