aboutsummaryrefslogtreecommitdiff
path: root/vagrant/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/bootstrap.sh')
-rw-r--r--vagrant/bootstrap.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index 867553f2..b77f237a 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -25,13 +25,13 @@ apt-get install -y postgresql postgresql-server-dev-9.3 postgresql-client
echo "127.0.0.1:5432:aggregator:vagrant:xxYzToW42" > .pgpass
chmod 700 .pgpass
sudo -u postgres createuser vagrant --no-superuser --createdb --no-createrole
-createdb aggregator --no-password
+sudo -u vagrant createdb aggregator --no-password
echo "ALTER USER vagrant WITH ENCRYPTED PASSWORD 'xxYzToW42';" | sudo -u postgres psql
echo "GRANT ALL PRIVILEGES ON DATABASE aggregator TO vagrant;" | sudo -u postgres psql
# Initializes the database
cd pyaggr3g470r
-python db_create.py
+sudo -u vagrant python db_create.py
# start pyAggr3g470r at startup
echo "#!/bin/sh -e" > /etc/rc.local
bgstack15