mirror of https://github.com/coder/code-server.git
To pass 'Lint shell files'
This commit is contained in:
parent
33e3e03499
commit
3ebc5782c6
|
@ -7,7 +7,7 @@ eval "$(fixuid -q)"
|
||||||
|
|
||||||
if [ "${DOCKER_USER-}" ]; then
|
if [ "${DOCKER_USER-}" ]; then
|
||||||
USER="$DOCKER_USER"
|
USER="$DOCKER_USER"
|
||||||
if [ "$DOCKER_USER" != "$(whoami)" -a -z "$(id -u $DOCKER_USER 2>/dev/null)" ]; then
|
if [ "$DOCKER_USER" != "$(whoami)" -a -z "$(id -u "$DOCKER_USER" 2>/dev/null)" ]; then
|
||||||
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
|
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
|
# 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.
|
# nor can we bind mount $HOME into a new home as that requires a privileged container.
|
||||||
|
|
Loading…
Reference in New Issue