This is an automated email from the ASF dual-hosted git repository.
rskraba pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.12 by this push:
new 796b74d2f2 AVRO-4195: [docker] Do not fail on replacing user_id (#3550)
796b74d2f2 is described below
commit 796b74d2f2304c6176ed2fc6ac45ea907b60f567
Author: Ryan Skraba <[email protected]>
AuthorDate: Sun Nov 16 16:34:27 2025 +0100
AVRO-4195: [docker] Do not fail on replacing user_id (#3550)
---
build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
index 40d3955ec0..ab8511508c 100755
--- a/build.sh
+++ b/build.sh
@@ -305,7 +305,7 @@ do
{
cat share/docker/Dockerfile
echo "ENV HOME=/home/$USER_NAME"
- echo "RUN getent passwd $USER_ID && userdel \$(getent passwd $USER_ID
| cut -d: -f1)"
+ echo "RUN getent passwd $USER_ID && userdel \$(getent passwd $USER_ID
| cut -d: -f1) || true"
echo "RUN getent group $GROUP_ID || groupadd -g $GROUP_ID $USER_NAME"
echo "RUN useradd -N -g $GROUP_ID -u $USER_ID -k /root -m $USER_NAME"
echo "RUN mkdir -p /home/$USER_NAME/.m2/repository"