You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by eo...@apache.org on 2018/09/11 17:57:33 UTC
[bookkeeper] branch master updated: Release script: Use realpath()
to map to current user home
This is an automated email from the ASF dual-hosted git repository.
eolivelli 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 d8f2cd1 Release script: Use realpath() to map to current user home
d8f2cd1 is described below
commit d8f2cd1b88a144b6a00c5b8d68c8071d014f5ece
Author: Enrico Olivelli <eo...@apache.org>
AuthorDate: Tue Sep 11 19:57:26 2018 +0200
Release script: Use realpath() to map to current user home
This change enables to run the release scripts on linux boxes in which the user's home is not at /home/username
Author: Enrico Olivelli <eo...@apache.org>
Reviewers: Sijie Guo <si...@apache.org>
This closes #1674 from eolivelli/fix/better-userland-mapping
---
dev/release/000-run-docker.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev/release/000-run-docker.sh b/dev/release/000-run-docker.sh
index edc5a94..66a94ff 100755
--- a/dev/release/000-run-docker.sh
+++ b/dev/release/000-run-docker.sh
@@ -107,8 +107,8 @@ docker run -i -t \
--rm=true \
-w ${BOOKKEEPER_ROOT} \
-u "${USER}" \
- -v "${BOOKKEEPER_ROOT}:${BOOKKEEPER_ROOT}" \
- -v "${LOCAL_HOME}:/home/${USER_NAME}" \
+ -v "${BOOKKEEPER_ROOT}:$(realpath $BOOKKEEPER_ROOT)" \
+ -v "${LOCAL_HOME}:$(realpath ~)" \
-e VERSION=${VERSION} \
-e MAJOR_VERSION=${MAJOR_VERSION} \
-e NEXT_VERSION=${NEXT_VERSION} \