Skip to content

Commit 5ce742c

Browse files
committed
Merge #189: [docker] Set permissions to container uid and group
76cb7e4 Set permissions to container uid and group (Andrew Chow)
2 parents 8de93ac + 76cb7e4 commit 5ce742c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libexec/copy-to-target

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ fi
4949
if [ -n "$USE_DOCKER" ]; then
5050
docker exec -u $TUSER gitian-target mkdir -p "/home/$TUSER/$2"
5151
docker cp "$1" gitian-target:"/home/$TUSER/$2"
52+
docker exec -u root gitian-target chown -R $TUSER:$TUSER "/home/$TUSER/$2"
5253
elif [ -z "$USE_LXC" ]; then
5354
src="${1%/}" # remove trailing / which triggers special rsync behaviour
5455
rsync --checksum -a $QUIET_FLAG -e "ssh -oConnectTimeout=30 -oNoHostAuthenticationForLocalhost=yes -i ${GITIAN_BASE:-.}/var/id_rsa -p $VM_SSH_PORT" "${src}" "$TUSER@localhost:$2"

0 commit comments

Comments
 (0)