git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
polish test vm
[plcapi.git]
/
tests
/
ci
/
setup
/
create_user.sh
diff --git
a/tests/ci/setup/create_user.sh
b/tests/ci/setup/create_user.sh
index
67adae5
..
33553d2
100755
(executable)
--- a/
tests/ci/setup/create_user.sh
+++ b/
tests/ci/setup/create_user.sh
@@
-1,14
+1,13
@@
#!/bin/sh
#!/bin/sh
-# @todo set up the same user for running tests as on travis (ie. 'travis'), or maybe user 'user' ?
-# @todo make the GID & UID of the user variable
+# @todo make the GID & UID of the user variable (we picked 2000 as it is the one used by default by Travis)
set -e
set -e
-USERNAME="${1:-
test
}"
+USERNAME="${1:-
docker
}"
-addgroup --gid
1013
"${USERNAME}"
-adduser --system --uid=
1013 --gid=1013
--home "/home/${USERNAME}" --shell /bin/bash "${USERNAME}"
+addgroup --gid
2000
"${USERNAME}"
+adduser --system --uid=
2000 --gid=2000
--home "/home/${USERNAME}" --shell /bin/bash "${USERNAME}"
adduser "${USERNAME}" "${USERNAME}"
mkdir -p "/home/${USERNAME}/.ssh"
adduser "${USERNAME}" "${USERNAME}"
mkdir -p "/home/${USERNAME}/.ssh"