Skip to content

Commit 40a2027

Browse files
jlebondustymabe
authored andcommitted
cmdlib: also chown back compose.json in privileged path
Match what we do for the repo and chown back `compose.json` to the build user. This should fix `cosa build --force-image`.
1 parent 982a6cf commit 40a2027

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmdlib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ runcompose_tree() {
566566
# with a consistent value, regardless of the environment
567567
(umask 0022 && sudo -E "$@")
568568
sudo chown -R -h "${USER}":"${USER}" "${tmprepo}"
569+
sudo chown "${USER}":"${USER}" "${composejson}"
569570
else
570571
runvm_with_cache -- "$@" --repo "${repo}" --write-composejson-to "${composejson}"
571572
fi

0 commit comments

Comments
 (0)