Fix gateway startup: set gateway.mode=local and allow unconfigured; bump to 0.5.3
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: OpenClaw Assistant
|
name: OpenClaw Assistant
|
||||||
version: "0.5.2"
|
version: "0.5.3"
|
||||||
slug: openclaw_assistant
|
slug: openclaw_assistant
|
||||||
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
|
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
|
||||||
url: https://github.com/techartdev/OpenClawHomeAssistant
|
url: https://github.com/techartdev/OpenClawHomeAssistant
|
||||||
|
|||||||
@@ -155,6 +155,10 @@ def env(name):
|
|||||||
v = os.environ.get(name, '')
|
v = os.environ.get(name, '')
|
||||||
return v if v != '' else None
|
return v if v != '' else None
|
||||||
|
|
||||||
|
# Ensure gateway.mode is set so `openclaw gateway run` can start.
|
||||||
|
# Safe default for the add-on.
|
||||||
|
set_path(cfg, ['gateway', 'mode'], 'local')
|
||||||
|
|
||||||
# gateway bind/port/token
|
# gateway bind/port/token
|
||||||
bind_ = env('GW_BIND')
|
bind_ = env('GW_BIND')
|
||||||
if bind_:
|
if bind_:
|
||||||
@@ -265,7 +269,8 @@ if ! command -v openclaw >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting OpenClaw Assistant gateway (openclaw)..."
|
echo "Starting OpenClaw Assistant gateway (openclaw)..."
|
||||||
openclaw gateway run &
|
# Allow starting even if user hasn't completed onboarding / config wizard yet.
|
||||||
|
openclaw gateway run --allow-unconfigured &
|
||||||
GW_PID=$!
|
GW_PID=$!
|
||||||
|
|
||||||
# Start web terminal (optional)
|
# Start web terminal (optional)
|
||||||
|
|||||||
Reference in New Issue
Block a user