We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa9827 commit eacca7dCopy full SHA for eacca7d
ci/release-image/entrypoint.sh
@@ -2,7 +2,8 @@
2
set -eu
3
4
# This isn't set by default.
5
-export USER="$(whoami)"
+USER="$(whoami)"
6
+export USER
7
8
if [ "${DOCKER_USER-}" != "$USER" ]; then
9
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
@@ -11,7 +12,7 @@ if [ "${DOCKER_USER-}" != "$USER" ]; then
11
12
sudo usermod --login "$DOCKER_USER" coder
13
sudo groupmod -n "$DOCKER_USER" coder
14
- export USER="$(whoami)"
15
+ USER="$DOCKER_USER"
16
17
sudo sed -i "/coder/d" /etc/sudoers.d/nopasswd
18
sudo sed -i "s/coder/$DOCKER_USER/g" /etc/fixuid/config.yml
0 commit comments