浏览代码

Merge #189: [docker] Set permissions to container uid and group

76cb7e4 Set permissions to container uid and group (Andrew Chow)
pull/172/head
Devrandom 2 年前
父节点
当前提交
5ce742c3de
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      libexec/copy-to-target

+ 1
- 0
libexec/copy-to-target 查看文件

@@ -49,6 +49,7 @@ fi
if [ -n "$USE_DOCKER" ]; then
docker exec -u $TUSER gitian-target mkdir -p "/home/$TUSER/$2"
docker cp "$1" gitian-target:"/home/$TUSER/$2"
docker exec -u root gitian-target chown -R $TUSER:$TUSER "/home/$TUSER/$2"
elif [ -z "$USE_LXC" ]; then
src="${1%/}" # remove trailing / which triggers special rsync behaviour
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"

正在加载...
取消
保存