8900 commited on
Commit
32815f8
·
verified ·
1 Parent(s): 184a8ce

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +16 -0
entrypoint.sh ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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