Skip to content

Commit

Permalink
Fix sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Jan 3, 2024
1 parent 4036140 commit 046f3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/COPY_ROOT/opt/ai-dock/bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function init_create_user() {
# May not exist
usermod -a -G render $USER_NAME
ln -s $home_dir /home/${USER_NAME}
echo "${user_name} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
echo "${USER_NAME} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
if [[ ! -e ${home_dir}/.bashrc ]]; then
cp -f /root/.bashrc ${home_dir}
chown ${WORKSPACE_UID}:${WORKSPACE_GID} ${home_dir}/.bashrc
Expand Down

0 comments on commit 046f3a9

Please sign in to comment.