3 # @todo set up the same user for running tests as on travis (ie. 'travis'), or maybe user 'user' ?
4 # @todo make the GID & UID of the user variable
10 addgroup --gid 1013 "${USERNAME}"
11 adduser --system --uid=1013 --gid=1013 --home "/home/${USERNAME}" --shell /bin/bash "${USERNAME}"
12 adduser "${USERNAME}" "${USERNAME}"
14 mkdir -p "/home/${USERNAME}/.ssh"
15 cp /etc/skel/.[!.]* "/home/${USERNAME}"
17 chown -R "${USERNAME}:${USERNAME}" "/home/${USERNAME}"
19 if [ -f /etc/sudoers ]; then
20 adduser "${USERNAME}" sudo
21 sed -i "\$ a ${USERNAME} ALL=\(ALL:ALL\) NOPASSWD: ALL" /etc/sudoers