8900 commited on
Commit
570a8b4
·
verified ·
1 Parent(s): f4ec5c6

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +9 -12
entrypoint.sh CHANGED
@@ -1,19 +1,16 @@
1
  #!/bin/sh
2
- set -e
3
 
4
- # 1. 设置 OPENCLAW_HOME
5
  if mkdir -p /data/.openclaw 2>/dev/null; then
6
- export OPENCLAW_HOME=/data
7
  else
8
- export OPENCLAW_HOME=/home/user
9
- mkdir -p /home/user/.openclaw
10
  fi
11
 
12
- # 2. 执行 HF 配置脚本,生成 openclaw.json
13
- node /app/setup-hf-config.mjs
14
 
15
- # 3. 启动 gateway,强制绑定 0.0.0.0
16
- exec node /app/openclaw.mjs gateway \
17
- --allow-unconfigured \
18
- --bind 0.0.0.0 \
19
- --port 7860 "$@"
 
1
  #!/bin/sh
 
2
 
 
3
  if mkdir -p /data/.openclaw 2>/dev/null; then
4
+ export OPENCLAW_HOME=/data
5
  else
6
+ export OPENCLAW_HOME=/home/user
7
+ mkdir -p /home/user/.openclaw
8
  fi
9
 
10
+ echo “[entrypoint] OPENCLAW_HOME=$OPENCLAW_HOME”
 
11
 
12
+ node /app/spaces/huggingface/setup-hf-config.mjs || true
13
+
14
+ echo “[entrypoint] starting gateway…”
15
+
16
+ exec node /app/openclaw.mjs gateway –allow-unconfigured –bind lan –port 7860