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:
parent
cc69168aaf
commit
dbdbaf87ee
@ -9,7 +9,9 @@ dn=$(dirname $0)
|
||||
${dn}/installdeps.sh
|
||||
|
||||
# create an unprivileged user for testing
|
||||
if ! getent passwd testuser; then
|
||||
adduser testuser
|
||||
fi
|
||||
|
||||
export LSAN_OPTIONS=verbosity=1:log_threads=1
|
||||
# And now the build
|
||||
|
Loading…
Reference in New Issue
Block a user