Read about our upcoming Code of Conduct on this issue

Commit c0ebf47c authored by Mathias De Mare's avatar Mathias De Mare
Browse files

dockerrpm: always use current user and group

Using uid 1000 and gid 1000 works by default in some cases,
but 'id -u' and 'id -g' should work in all cases.

Differential Revision: https://phab.mercurial-scm.org/D11767

--HG--
branch : stable
parent e35807332598
......@@ -18,13 +18,8 @@ DOCKER=$($BUILDDIR/hg-docker docker-path)
CONTAINER=hg-docker-$PLATFORM
if [[ -z "${HG_DOCKER_OWN_USER}" ]]; then
DOCKERUID=1000
DOCKERGID=1000
else
DOCKERUID=$(id -u)
DOCKERGID=$(id -g)
fi
DOCKERUID=$(id -u)
DOCKERGID=$(id -g)
$BUILDDIR/hg-docker build \
--build-arg UID=$DOCKERUID \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment