diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-21 09:13:47 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-21 09:13:47 +0100 |
commit | 12e7a9ecfb42514fec5d4e2b1782edb39ce24c8b (patch) | |
tree | f860d402d89254b2d867de8ae6575922bf3b6a25 | |
parent | Test with Vagrant. (diff) | |
download | newspipe-12e7a9ecfb42514fec5d4e2b1782edb39ce24c8b.tar.gz newspipe-12e7a9ecfb42514fec5d4e2b1782edb39ce24c8b.tar.bz2 newspipe-12e7a9ecfb42514fec5d4e2b1782edb39ce24c8b.zip |
Fixed Vagrant bootstrap.sh file.
-rw-r--r-- | vagrant/bootstrap.sh | 4 |
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
|