Added ResetMail.sh to Provision.sh script, cleaned formatting.

This commit is contained in:
Robert Hafner 2013-12-01 23:06:18 -08:00
parent 13514054d9
commit 5d30c7eaa1

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
echo 'Provisioning Environment with Dovecot and Test Messages'
# Install and Configure Dovecot # Install and Configure Dovecot
@ -20,7 +21,15 @@ fi
if getent passwd testuser > /dev/null; then if getent passwd testuser > /dev/null; then
echo 'testuser already exists' echo 'testuser already exists'
else else
echo 'Creating testuser' echo 'Creating User "testuser"'
sudo useradd testuser -m -s /bin/bash sudo useradd testuser -m -s /bin/bash
echo "testuser:applesauce"|sudo chpasswd echo "testuser:applesauce"|sudo chpasswd
fi fi
# Setup Email
/bin/bash /vagrant/ResetMail.sh
echo 'Environment has been provisioned'