Merge pull request #9 from sickcodes/patch-1

Skip password required for running sudo for automation
This commit is contained in:
zhouziyang
2021-05-06 14:30:50 +08:00
committed by GitHub

View File

@@ -16,6 +16,7 @@ RUN curl -o /usr/local/bin/repo https://storage.googleapis.com/git-repo-download
RUN groupadd -g $groupid $username \
&& useradd -m -u $userid -g $groupid $username \
&& echo "$username ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
&& echo $username >/root/username \
&& echo "$username:$username" | chpasswd && adduser $username sudo