From 25700a34b2dc91a81868737b6e251563756f7996 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 31 Jan 2026 20:47:26 +0200 Subject: [PATCH] Fix nginx landing page permissions (chmod) and bump add-on to 0.5.11 --- openclaw_assistant/config.yaml | 2 +- openclaw_assistant/run.sh | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 0909548..749bec4 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.10" +version: "0.5.11" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant diff --git a/openclaw_assistant/run.sh b/openclaw_assistant/run.sh index 801d05e..bb353b2 100644 --- a/openclaw_assistant/run.sh +++ b/openclaw_assistant/run.sh @@ -222,8 +222,17 @@ landing = landing_tpl.replace('__GATEWAY_TOKEN__', token) landing = landing.replace('__GATEWAY_PUBLIC_URL__', public_url) landing = landing.replace('__GW_PUBLIC_URL_PATH__', gw_path) -Path('/etc/nginx/html').mkdir(parents=True, exist_ok=True) -Path('/etc/nginx/html/index.html').write_text(landing) +out_dir = Path('/etc/nginx/html') +out_dir.mkdir(parents=True, exist_ok=True) +out_file = out_dir / 'index.html' +out_file.write_text(landing) + +# Ensure nginx can read it even if base image uses restrictive umask/permissions. +try: + out_dir.chmod(0o755) + out_file.chmod(0o644) +except Exception: + pass PY echo "Starting ingress proxy (nginx) on :8099 ..."