This is an automated email from the ASF dual-hosted git repository.
shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 7c9c42960a fix: release build image error when user's home dir is
under /home (#4432)
7c9c42960a is described below
commit 7c9c42960ad85760fbf0a3d6b30f9faceb16948a
Author: zhiheng123 <[email protected]>
AuthorDate: Wed Jun 12 16:13:40 2024 +0800
fix: release build image error when user's home dir is under /home (#4432)
Signed-off-by: zhiheng123 <[email protected]>
---
dev/release/000-run-docker.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/release/000-run-docker.sh b/dev/release/000-run-docker.sh
index 248c2e7fec..495227a7e9 100755
--- a/dev/release/000-run-docker.sh
+++ b/dev/release/000-run-docker.sh
@@ -51,7 +51,7 @@ docker build -t "${IMAGE_NAME}-${USER_NAME}" -
<<UserSpecificDocker
FROM --platform=linux/amd64 ${IMAGE_NAME}
RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME} && \
useradd -l -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME} && \
- ([ "$(dirname "$HOME")" -eq "/home" ] || ln -s /home $(dirname "$HOME")) && \
+ ([ "$(dirname "$HOME")" = "/home" ] || ln -s /home $(dirname "$HOME")) && \
mkdir -p /gpg && chown ${USER_ID}:${GROUP_ID} /gpg && chmod 700 /gpg
ENV HOME /home/${USER_NAME}
UserSpecificDocker