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