mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 19:14:33 -07:00
fix(workspaces): ensure container user owns configuration directories
This commit is contained in:
@@ -53,6 +53,9 @@ export async function runOrchestrator(args: string[], env: NodeJS.ProcessEnv = p
|
|||||||
|
|
||||||
const check = await provider.getExecOutput(`ls -d ${hostWorktreeDir}/.git`);
|
const check = await provider.getExecOutput(`ls -d ${hostWorktreeDir}/.git`);
|
||||||
|
|
||||||
|
// FIX: Ensure container user (node) owns the workspaces and config directories
|
||||||
|
await provider.exec(`sudo docker exec -u root maintainer-worker chown -R node:node ${containerHome}/.workspaces ${containerHome}/.gemini`);
|
||||||
|
|
||||||
if (check.status !== 0) {
|
if (check.status !== 0) {
|
||||||
console.log(' - Provisioning isolated git worktree...');
|
console.log(' - Provisioning isolated git worktree...');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user