Skip to content

Commit ea105a9

Browse files
committed
Fix release image entrypoint.sh
1 parent e453d31 commit ea105a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/release-image/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
USER="$(whoami)"
66
export USER
77

8-
if [ "${DOCKER_USER-}" != "$USER" ]; then
8+
if [ "${DOCKER_USER-}" ] && [ "$DOCKER_USER" != "$USER" ]; then
99
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
1010
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
1111
# nor can we bind mount $HOME into a new home as that requires a privileged container.

0 commit comments

Comments
 (0)