Skip to content

Commit

Permalink
add --non-unique flag
Browse files Browse the repository at this point in the history
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
  • Loading branch information
JasonYangShadow committed Jun 7, 2024
1 parent 2ffd3a1 commit 1b26f78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ci-deb-build-test
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ mv .??* !(src) src

# switch to an unprivileged user with sudo privileges
apt-get install -y sudo
useradd -u 1000 --create-home -s /bin/bash testuser
# add --non-unique to avoid of non unique creation failure
useradd -u 1000 --non-unique --create-home -s /bin/bash testuser
echo "Defaults:testuser env_keep=DOCKER_HOST" >>/etc/sudoers
echo "testuser ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
mkdir -p /local
Expand Down

0 comments on commit 1b26f78

Please sign in to comment.