From 0d65ed73f7de7e56340b40bc5ea68338a96408d1 Mon Sep 17 00:00:00 2001 From: Deeman Date: Fri, 27 Feb 2026 17:24:47 +0100 Subject: [PATCH] fix: cd /tmp before uv run to avoid /root/uv.toml permission error sudo -u infra_service inherits the working dir (/root), causing uv to fail reading /root/uv.toml. Running from /tmp avoids the permission issue. Co-Authored-By: Claude Sonnet 4.6 --- bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index c659705..297e101 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -152,8 +152,8 @@ recover_project() { fi log "Recovering: ${containers[*]}" - sudo -u "${SERVICE_USER}" \ - "${UV}" run /tmp/server-infra-autocompose.py "${containers[@]}" > "${outfile}" + (cd /tmp && sudo -u "${SERVICE_USER}" \ + "${UV}" run /tmp/server-infra-autocompose.py "${containers[@]}") > "${outfile}" log " Saved to ${outfile}" }