aboutsummaryrefslogtreecommitdiff
path: root/vagrant/bootstrap.sh
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-09 08:55:49 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-09 08:55:49 +0100
commit42fc65f5cb107496a0ae64ea1cc872a33d233f97 (patch)
tree5cd30d2404788cb65efe89be7f85db4b67d92d3e /vagrant/bootstrap.sh
parentMisc changes to the layout template. (diff)
downloadnewspipe-42fc65f5cb107496a0ae64ea1cc872a33d233f97.tar.gz
newspipe-42fc65f5cb107496a0ae64ea1cc872a33d233f97.tar.bz2
newspipe-42fc65f5cb107496a0ae64ea1cc872a33d233f97.zip
Updated conf file for Vagrant.
Diffstat (limited to 'vagrant/bootstrap.sh')
-rw-r--r--vagrant/bootstrap.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index f756c468..3dd1a510 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -2,7 +2,7 @@
apt-get update
apt-get upgrade
-apt-get install -y python libpq-dev python-dev python-pip build-essential git
+apt-get install -y python3 libpq-dev python3-dev build-essential git
# Clone the source code of pyAggr3g470r
git clone https://bitbucket.org/cedricbonhomme/pyaggr3g470r.git
@@ -16,7 +16,7 @@ cd pyaggr3g470r
# For lxml:
apt-get install -y libxml2-dev libxslt1-dev
# installation with pip
-sudo pip install --upgrade -r requirements.txt
+sudo pip3 install --upgrade -r requirements.txt
# copy of the default configuration files for vagrant
cp vagrant/conf.cfg-sample conf/conf.cfg
cd ..
@@ -35,12 +35,12 @@ echo "GRANT ALL PRIVILEGES ON DATABASE aggregator TO vagrant;" | sudo -u postgre
# Initializes the database
cd pyaggr3g470r
chown -R vagrant:vagrant .
-sudo -u vagrant python db_create.py
+sudo -u vagrant python3 db_create.py
# start pyAggr3g470r at startup
echo "#!/bin/sh -e" > /etc/rc.local
echo "cd /home/vagrant/pyaggr3g470r/" >> /etc/rc.local
-echo "sudo -u vagrant python runserver.py &" >> /etc/rc.local
+echo "sudo -u vagrant python3 runserver.py &" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
chmod 755 /etc/rc.local
bgstack15