Fix nginx landing page permissions (chmod) and bump add-on to 0.5.11
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: OpenClaw Assistant
|
name: OpenClaw Assistant
|
||||||
version: "0.5.10"
|
version: "0.5.11"
|
||||||
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
|
||||||
|
|||||||
@@ -222,8 +222,17 @@ landing = landing_tpl.replace('__GATEWAY_TOKEN__', token)
|
|||||||
landing = landing.replace('__GATEWAY_PUBLIC_URL__', public_url)
|
landing = landing.replace('__GATEWAY_PUBLIC_URL__', public_url)
|
||||||
landing = landing.replace('__GW_PUBLIC_URL_PATH__', gw_path)
|
landing = landing.replace('__GW_PUBLIC_URL_PATH__', gw_path)
|
||||||
|
|
||||||
Path('/etc/nginx/html').mkdir(parents=True, exist_ok=True)
|
out_dir = Path('/etc/nginx/html')
|
||||||
Path('/etc/nginx/html/index.html').write_text(landing)
|
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
|
PY
|
||||||
|
|
||||||
echo "Starting ingress proxy (nginx) on :8099 ..."
|
echo "Starting ingress proxy (nginx) on :8099 ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user