8900 commited on
Update entrypoint.sh
Browse files- 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 |
-
|
| 7 |
else
|
| 8 |
-
|
| 9 |
-
|
| 10 |
fi
|
| 11 |
|
| 12 |
-
|
| 13 |
-
node /app/setup-hf-config.mjs
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 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
|