We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b8cff commit 0cd4f24Copy full SHA for 0cd4f24
ci/release-image/entrypoint.sh
@@ -5,7 +5,7 @@ set -eu
5
# Otherwise the current container UID may not exist in the passwd database.
6
eval "$(fixuid -q)"
7
8
-if [ "${DOCKER_USER-}" ]; then
+if [ "${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