Skip to content

Commit

Permalink
cmdlib: also chown back compose.json in privileged path
Browse files Browse the repository at this point in the history
Match what we do for the repo and chown back `compose.json` to the build
user. This should fix `cosa build --force-image`.
  • Loading branch information
jlebon committed Nov 21, 2024
1 parent f3bef57 commit 994cdca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ runcompose_tree() {
# with a consistent value, regardless of the environment
(umask 0022 && sudo -E "$@")
sudo chown -R -h "${USER}":"${USER}" "${tmprepo}"
sudo chown "${USER}":"${USER}" "${composejson}"
else
runvm_with_cache -- "$@" --repo "${repo}" --write-composejson-to "${composejson}"
fi
Expand Down

0 comments on commit 994cdca

Please sign in to comment.