Skip to content

Commit 797325c

Browse files
committed
Make useradd line a little less clever
1 parent f778ae3 commit 797325c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apt-get clean -y && \
1111

1212
# Set up all files as owned by non-root user
1313
RUN groupadd -f --system -g ${BUILDER_GROUP} elastic \
14-
&& (id -u ${BUILDER_USER} 2>&1 /dev/null || useradd --system --shell /bin/bash -u ${BUILDER_USER} -g ${BUILDER_GROUP} -m elastic 2>&1 /dev/null) \
14+
&& (id -u ${BUILDER_USER} || useradd --system --shell /bin/bash -u ${BUILDER_USER} -g ${BUILDER_GROUP} -m elastic) \
1515
&& mkdir -p /usr/src/app \
1616
&& chown -R ${BUILDER_USER}:${BUILDER_GROUP} /usr/src/ \
1717
&& mkdir -p /.npm \

0 commit comments

Comments
 (0)