You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by sh...@apache.org on 2024/06/12 08:17:30 UTC
(bookkeeper) 02/02: fix: release build image error when user's home dir is under /home (#4432)
This is an automated email from the ASF dual-hosted git repository.
shoothzj pushed a commit to branch branch-4.17
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
commit 6f354c8248b583470e3115d58e954161a582bd24
Author: zhiheng123 <90...@qq.com>
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 <90...@qq.com>
(cherry picked from commit 7c9c42960ad85760fbf0a3d6b30f9faceb16948a)
---
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