Mercurial > hg
diff contrib/dockerlib.sh @ 27245:cea1473ba468 stable
dockerlib: short form for non-unique uid/gid for CentOS 5 compat (issue4977)
CentOS 5 does not support '--non-unique', but does support the short '-o'.
author | Mathias De Maré <mathias.demare@gmail.com> |
---|---|
date | Mon, 07 Dec 2015 17:39:31 +0100 |
parents | 2d437a0f3355 |
children | a3ac1ea611ce |
line wrap: on
line diff
--- a/contrib/dockerlib.sh Thu Dec 03 01:38:21 2015 +0100 +++ b/contrib/dockerlib.sh Mon Dec 07 17:39:31 2015 +0100 @@ -35,8 +35,8 @@ # running docker. This is *very likely* to fail at some point. echo RUN useradd $DBUILDUSER -u 1000 else - echo RUN groupadd $DBUILDUSER -g `id -g` --non-unique - echo RUN useradd $DBUILDUSER -u `id -u` -g $DBUILDUSER --non-unique + echo RUN groupadd $DBUILDUSER -g `id -g` -o + echo RUN useradd $DBUILDUSER -u `id -u` -g $DBUILDUSER -o fi ) | $DOCKER build --tag $CONTAINER - }