fix: add gws config directory and fix gog symlink path (merged)

- Add /home/node/.openclaw/gws directory for Google Workspace CLI
- Fix gog symlink from .config/gog to .config/gogcli (correct path)
- Add symlink for gws at .config/gws
- Update init-perms to create gog, ssh, and gws subdirectories
- Merge with remote changes (opt/openclaw/defaults)
This commit is contained in:
2026-04-16 20:25:56 +00:00
6 changed files with 158 additions and 29 deletions

View File

@@ -43,9 +43,9 @@ RUN echo '#!/bin/sh' > /home/node/.local/bin/tailscale-start.sh && \
echo 'mkdir -p /var/run/tailscale /home/node/.local/share/tailscale /home/node/.local/share/tailscale/files' >> /home/node/.local/bin/tailscale-start.sh && \
echo 'tailscaled --socket=/tmp/tailscale.sock --tun=userspace-networking &' >> /home/node/.local/bin/tailscale-start.sh && \
echo 'sleep 3' >> /home/node/.local/bin/tailscale-start.sh && \
echo 'tailscale --socket=/tmp/tailscale.sock up --authkey=$TAILSCALE_AUTH_KEY' >> /home/node/.local/bin/tailscale-start.sh && \
echo 'if [ -n "$TAILSCALE_AUTH_KEY" ]; then tailscale --socket=/tmp/tailscale.sock up --authkey="$TAILSCALE_AUTH_KEY" --hostname="${TAILSCALE_HOSTNAME:-openclaw-gateway}" || true; fi' >> /home/node/.local/bin/tailscale-start.sh && \
echo 'sleep 2' >> /home/node/.local/bin/tailscale-start.sh && \
echo 'tailscale --socket=/tmp/tailscale.sock serve --bg 18789' >> /home/node/.local/bin/tailscale-start.sh && \
echo 'tailscale --socket=/tmp/tailscale.sock serve --bg 18789 || true' >> /home/node/.local/bin/tailscale-start.sh && \
chmod +x /home/node/.local/bin/tailscale-start.sh
# Copy custom tools into the image
@@ -54,8 +54,8 @@ COPY bin/* /usr/local/bin/
RUN chmod +x /usr/local/bin/*
# Create directories in the persistent volume location
RUN mkdir -p /home/node/.openclaw/ssh /home/node/.openclaw/gog /home/node/.openclaw/gws \
&& chown -R node:node /home/node/.openclaw
RUN mkdir -p /home/node/.openclaw/ssh /home/node/.openclaw/gog /home/node/.openclaw/gws /opt/openclaw/defaults \
&& chown -R node:node /home/node/.openclaw /opt/openclaw/defaults
# Link gog config and ssh to standard locations
RUN mkdir -p /home/node/.config /home/node/.ssh \
@@ -63,8 +63,8 @@ RUN mkdir -p /home/node/.config /home/node/.ssh \
&& ln -sf /home/node/.openclaw/ssh /home/node/.ssh \
&& ln -sf /home/node/.openclaw/gws /home/node/.config/gws
# Copy config into the image
COPY config/openclaw.json /home/node/.openclaw/openclaw.json
# Copy default config into the image
COPY config/openclaw.json /opt/openclaw/defaults/openclaw.json
# Switch back to node user
USER node