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 <noreply@anthropic.com>
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user