We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bea906f commit dd2e9fcCopy full SHA for dd2e9fc
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 [ -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