From ea105a9290579040e1ab396c7c0d0d2d825aad3a Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Mon, 12 Oct 2020 04:26:23 -0400 Subject: [PATCH] Fix release image entrypoint.sh --- ci/release-image/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/release-image/entrypoint.sh b/ci/release-image/entrypoint.sh index 7842a3564..b4343e7ed 100755 --- a/ci/release-image/entrypoint.sh +++ b/ci/release-image/entrypoint.sh @@ -5,7 +5,7 @@ set -eu USER="$(whoami)" export USER -if [ "${DOCKER_USER-}" != "$USER" ]; then +if [ "${DOCKER_USER-}" ] && [ "$DOCKER_USER" != "$USER" ]; then echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null # Unfortunately we cannot change $HOME as we cannot move any bind mounts # nor can we bind mount $HOME into a new home as that requires a privileged container.