Spaces:
Sleeping
Sleeping
Somrat Sorkar commited on
Commit ·
567a914
1
Parent(s): 27165bb
Pre-approve Control UI device in ~/.openclaw/devices/paired.json
Browse files
start.sh
CHANGED
|
@@ -242,21 +242,24 @@ echo ""
|
|
| 242 |
# Set model via environment for the gateway
|
| 243 |
export LLM_MODEL="$LLM_MODEL"
|
| 244 |
|
| 245 |
-
# For headless Docker: pre-
|
| 246 |
-
#
|
| 247 |
-
mkdir -p /home/node/.openclaw/
|
| 248 |
-
cat > /home/node/.openclaw/
|
| 249 |
{
|
| 250 |
-
"
|
| 251 |
{
|
| 252 |
-
"id": "
|
| 253 |
-
"
|
| 254 |
-
"
|
| 255 |
-
"
|
|
|
|
|
|
|
|
|
|
| 256 |
}
|
| 257 |
]
|
| 258 |
}
|
| 259 |
-
|
| 260 |
|
| 261 |
openclaw gateway run --port 7860 --bind lan --verbose 2>&1 | tee -a /home/node/.openclaw/gateway.log &
|
| 262 |
GATEWAY_PID=$!
|
|
|
|
| 242 |
# Set model via environment for the gateway
|
| 243 |
export LLM_MODEL="$LLM_MODEL"
|
| 244 |
|
| 245 |
+
# For headless Docker: pre-approve the Control UI device to bypass pairing
|
| 246 |
+
# Store approved device entry in ~/.openclaw/devices/paired.json
|
| 247 |
+
mkdir -p /home/node/.openclaw/devices
|
| 248 |
+
cat > /home/node/.openclaw/devices/paired.json <<'DEVICEEOF'
|
| 249 |
{
|
| 250 |
+
"devices": [
|
| 251 |
{
|
| 252 |
+
"id": "control-ui-docker",
|
| 253 |
+
"kind": "device",
|
| 254 |
+
"role": "control-ui",
|
| 255 |
+
"name": "HuggingClaw Control UI",
|
| 256 |
+
"approved": true,
|
| 257 |
+
"approvedAt": "2026-03-31T06:07:00.000Z",
|
| 258 |
+
"scopes": ["*"]
|
| 259 |
}
|
| 260 |
]
|
| 261 |
}
|
| 262 |
+
DEVICEEOF
|
| 263 |
|
| 264 |
openclaw gateway run --port 7860 --bind lan --verbose 2>&1 | tee -a /home/node/.openclaw/gateway.log &
|
| 265 |
GATEWAY_PID=$!
|