fix(openclaw): recursively fix permissions on data directory
- Use 'chown -R 1000:1000' and 'chmod -R u+rwX' in the preStart script. - This ensures all files in /var/lib/openclaw are accessible by the container's node user.
This commit is contained in:
parent
49ffe471a3
commit
aa670604b5
1 changed files with 3 additions and 2 deletions
|
|
@ -59,9 +59,10 @@ in
|
|||
# Copy the declarative config before starting the container
|
||||
# This allows OpenClaw to safely write/rename the file at runtime without EBUSY errors
|
||||
systemd.services."podman-openclaw".preStart = lib.mkBefore ''
|
||||
mkdir -p /var/lib/openclaw
|
||||
cp -f ${./openclaw-config.json} /var/lib/openclaw/openclaw.json
|
||||
chown 1000:1000 /var/lib/openclaw/openclaw.json
|
||||
chmod 644 /var/lib/openclaw/openclaw.json
|
||||
chown -R 1000:1000 /var/lib/openclaw
|
||||
chmod -R u+rwX /var/lib/openclaw
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue