From f126963e7680ec512b29dc588796e2c9967375d1 Mon Sep 17 00:00:00 2001 From: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com> Date: Tue, 23 May 2023 15:21:45 -0700 Subject: [PATCH] Fixed Broken `sudoers` On Windows --- packages/env/lib/init-config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/env/lib/init-config.js b/packages/env/lib/init-config.js index 68b91edaa3339..3b9a466e38f98 100644 --- a/packages/env/lib/init-config.js +++ b/packages/env/lib/init-config.js @@ -202,7 +202,7 @@ RUN apt-get -qy install $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini # Set up sudo so they can have root access. RUN apt-get -qy install sudo -RUN echo "$HOST_USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers`; +RUN echo "$( whoami ) ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers`; break; } case 'cli': { @@ -215,7 +215,7 @@ RUN apk --no-cache add $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini # Set up sudo so they can have root access. RUN apk --no-cache add sudo linux-headers -RUN echo "$HOST_USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers`; +RUN echo "$( whoami ) ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers`; break; } default: {