Commit 4713bcf7 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
parent e35807332598
...@@ -18,13 +18,8 @@ ...@@ -18,13 +18,8 @@
CONTAINER=hg-docker-$PLATFORM CONTAINER=hg-docker-$PLATFORM
if [[ -z "${HG_DOCKER_OWN_USER}" ]]; then DOCKERUID=$(id -u)
DOCKERUID=1000 DOCKERGID=$(id -g)
DOCKERGID=1000
else
DOCKERUID=$(id -u)
DOCKERGID=$(id -g)
fi
$BUILDDIR/hg-docker build \ $BUILDDIR/hg-docker build \
--build-arg UID=$DOCKERUID \ --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