diff --git a/tools/ci-install.sh b/tools/ci-install.sh index c5131c37..2afcd789 100755 --- a/tools/ci-install.sh +++ b/tools/ci-install.sh @@ -286,8 +286,10 @@ case "$ci_distro" in if [ "$ci_in_docker" = yes ]; then # Add the user that we will use to do the build inside the # Docker container, and let them use sudo - useradd -m user - passwd -ud user + if ! getent passwd user >/dev/null; then + useradd -m user + passwd -ud user + fi echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nopasswd chmod 0440 /etc/sudoers.d/nopasswd fi