Ensure that deploy is always owned by user (#680)
Switch "docker cp" to tar streaming mode. As the receiving "tar" command is executed outside Docker the resulting directories & files are owned by the calling user.
This commit is contained in:
parent
cf40e4b299
commit
0db41e35ef
@ -126,8 +126,9 @@ else
|
||||
wait "$!"
|
||||
fi
|
||||
|
||||
# Ensure that deploy/ is always owned by calling user
|
||||
echo "copying results from deploy/"
|
||||
${DOCKER} cp "${CONTAINER_NAME}":/pi-gen/deploy .
|
||||
${DOCKER} cp "${CONTAINER_NAME}":/pi-gen/deploy - | tar -xf -
|
||||
ls -lah deploy
|
||||
|
||||
# cleanup
|
||||
|
Loading…
x
Reference in New Issue
Block a user