[Updated] D11767: dockerrpm: always use current user and group

Phabricator phabricator at mercurial-scm.org
Mon Nov 22 10:50:32 UTC 2021


Closed by commit rHG4713bcf78037: dockerrpm: always use current user and group (authored by Mathias De Mare <mathias.de_mare at nokia.com>).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11767?vs=31084&id=31090

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11767/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11767

AFFECTED FILES
  contrib/packaging/dockerrpm

CHANGE DETAILS

diff --git a/contrib/packaging/dockerrpm b/contrib/packaging/dockerrpm
--- a/contrib/packaging/dockerrpm
+++ b/contrib/packaging/dockerrpm
@@ -18,13 +18,8 @@
 
 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 \



To: Mathiasdm, #hg-reviewers, Alphare
Cc: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211122/fa6d78e9/attachment-0002.html>


More information about the Mercurial-patches mailing list