fix: chown the whole coyote cache dir not just the oauth dir in the sandbox
This commit is contained in:
+2
-1
@@ -390,6 +390,7 @@ fn copy_host_files(name: &str) -> Result<()> {
|
||||
|
||||
let oauth_tokens_dir = paths::oauth_tokens_dir();
|
||||
if oauth_tokens_dir.exists() {
|
||||
let sandbox_cache_dir = "/home/agent/.cache/coyote";
|
||||
let sandbox_oauth_dir = "/home/agent/.cache/coyote/oauth";
|
||||
ensure_sandbox_dir(name, sandbox_oauth_dir)?;
|
||||
let dest = format!("{name}:{sandbox_oauth_dir}/");
|
||||
@@ -400,7 +401,7 @@ fn copy_host_files(name: &str) -> Result<()> {
|
||||
let path = entry.path();
|
||||
sbx_cp(&path.display().to_string(), &dest)?;
|
||||
}
|
||||
chown_agent_recursive(name, sandbox_oauth_dir)?;
|
||||
chown_agent_recursive(name, sandbox_cache_dir)?;
|
||||
} else {
|
||||
debug!(
|
||||
"Skipping OAuth token copy: {} does not exist",
|
||||
|
||||
Reference in New Issue
Block a user