aboutsummaryrefslogtreecommitdiff
path: root/vagrant/bootstrap.sh
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-26 08:01:29 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-26 08:01:29 +0100
commit569c64a520347f1cd85788dc1fb20d3b0a5c666e (patch)
tree2bdb2179cd01a487d6d49a240472e8c350ad2b23 /vagrant/bootstrap.sh
parentRenamed a parameter of the install.sh script. (diff)
downloadnewspipe-569c64a520347f1cd85788dc1fb20d3b0a5c666e.tar.gz
newspipe-569c64a520347f1cd85788dc1fb20d3b0a5c666e.tar.bz2
newspipe-569c64a520347f1cd85788dc1fb20d3b0a5c666e.zip
Updated Vagrant bootstrap file.
Diffstat (limited to 'vagrant/bootstrap.sh')
-rw-r--r--vagrant/bootstrap.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index 1d931cf8..927a39b2 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -11,6 +11,9 @@ if [ $? -ne 0 ]; then
exit 1;
fi
+# Installation of PostgreSQL
+apt-get install -y postgresql postgresql-server-dev-9.4 postgresql-client
+
# Install all Python requierements
cd pyaggr3g470r
# For lxml
@@ -25,9 +28,6 @@ sudo pip3 install feedparser==5.1.2
cp vagrant/conf.cfg-sample conf/conf.cfg
cd ..
-# Installation of PostgreSQL
-apt-get install -y postgresql postgresql-server-dev-9.4 postgresql-client
-
# Configuration of the database
echo "127.0.0.1:5432:aggregator:vagrant:xxYzToW42" > .pgpass
chmod 700 .pgpass
@@ -39,7 +39,8 @@ echo "GRANT ALL PRIVILEGES ON DATABASE aggregator TO vagrant;" | sudo -u postgre
# Initializes the database
cd pyaggr3g470r
chown -R vagrant:vagrant .
-sudo -u vagrant python3 db_create.py
+sudo -u vagrant python3 manager.py db_empty
+sudo -u vagrant python3 manager.py db_create
# start pyAggr3g470r at startup
echo "#!/bin/sh -e" > /etc/rc.local
bgstack15