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 adduser ${USERNAME} sudo
18 sed -i "\$ a ${USERNAME} ALL=\(ALL:ALL\) NOPASSWD: ALL" /etc/sudoers
20 chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}