ci: Make adduser invocation idempotent

This is a bit of a selfish request, though I also really like
`ci/build.sh` for hacking in a throwaway environment. This patch allows
one to rerun `ci/build.sh` without erroring out on `testuser` already
existing.

Closes: #1621
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2018-10-16 11:56:26 -04:00 committed by Atomic Bot
parent cc69168aaf
commit dbdbaf87ee

View File

@ -9,7 +9,9 @@ dn=$(dirname $0)
${dn}/installdeps.sh
# create an unprivileged user for testing
adduser testuser
if ! getent passwd testuser; then
adduser testuser
fi
export LSAN_OPTIONS=verbosity=1:log_threads=1
# And now the build