Skip to content

Commit

Permalink
Fixed Broken sudoers On Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ObliviousHarmony committed May 23, 2023
1 parent 11e0d99 commit f126963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/env/lib/init-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand All @@ -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: {
Expand Down

0 comments on commit f126963

Please sign in to comment.