[ci skip] openclaw: fix workspace permissions — chown to node user
Init container clones repo as root but main container runs as node (UID 1000). Added chown -R 1000:1000 /workspace/infra so OpenClaw can write to workspace.
This commit is contained in:
parent
79af6fff47
commit
ecc3445860
1 changed files with 1 additions and 0 deletions
|
|
@ -319,6 +319,7 @@ resource "kubernetes_deployment" "openclaw" {
|
||||||
# Mark repo as safe for the node user (different UID from init container)
|
# Mark repo as safe for the node user (different UID from init container)
|
||||||
git config --global --add safe.directory /workspace/infra
|
git config --global --add safe.directory /workspace/infra
|
||||||
cp /root/.gitconfig /openclaw-home/.gitconfig 2>/dev/null || true
|
cp /root/.gitconfig /openclaw-home/.gitconfig 2>/dev/null || true
|
||||||
|
chown -R 1000:1000 /workspace/infra
|
||||||
|
|
||||||
# Symlink Claude skills into OpenClaw skills directory
|
# Symlink Claude skills into OpenClaw skills directory
|
||||||
ln -sfn /workspace/infra/.claude/skills /openclaw-home/skills
|
ln -sfn /workspace/infra/.claude/skills /openclaw-home/skills
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue