We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e453d31 commit ea105a9Copy full SHA for ea105a9
ci/release-image/entrypoint.sh
@@ -5,7 +5,7 @@ set -eu
5
USER="$(whoami)"
6
export USER
7
8
-if [ "${DOCKER_USER-}" != "$USER" ]; then
+if [ "${DOCKER_USER-}" ] && [ "$DOCKER_USER" != "$USER" ]; then
9
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
10
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
11
# nor can we bind mount $HOME into a new home as that requires a privileged container.
0 commit comments