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 authored and dustymabe committed Nov 22, 2024
1 parent 982a6cf commit 40a2027
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 40a2027

Please sign in to comment.