未验证 提交 ea105a92 编写于 作者: A Anmol Sethi

Fix release image entrypoint.sh

上级 e453d310
......@@ -5,7 +5,7 @@ set -eu
USER="$(whoami)"
export USER
if [ "${DOCKER_USER-}" != "$USER" ]; then
if [ "${DOCKER_USER-}" ] && [ "$DOCKER_USER" != "$USER" ]; then
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
# nor can we bind mount $HOME into a new home as that requires a privileged container.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册