Browse Source

Create testrunner home folder inside vagrant

useradd is fairly low level and doesn't create a home dir or set permissions
adducer does all these things
Hamilton Turner 10 years ago
parent
commit
7ce3abe017
1 changed files with 2 additions and 2 deletions
  1. 2 2
      deployment/vagrant-common/bootstrap.sh

+ 2 - 2
deployment/vagrant-common/bootstrap.sh

@@ -75,8 +75,8 @@ if [ ! -e "~/.firstboot" ]; then
   echo $CLIENT_IP TFB-client   | sudo tee --append /etc/hosts
   echo $SERVER_IP TFB-server   | sudo tee --append /etc/hosts
 
-  # Add other users:
-  sudo useradd -m testrunner
+  # Add user to run tests
+  sudo adduser --disabled-password --gecos "" testrunner
   # WARN: testrunner will NOT have sudo access by round 11
   #       please begin migrating scripts to not rely on sudo.
   sudo bash -c "echo 'testrunner ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/90-tfb-testrunner"