aboutsummaryrefslogtreecommitdiff
path: root/vagrant
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-12-22 16:42:44 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-12-22 16:42:44 +0100
commit55ced419e816644288431b56902616bced6386a5 (patch)
tree56bb7effa78bf311f57aa464a0e606499e2f3aab /vagrant
parentUpdated translations. (diff)
downloadnewspipe-55ced419e816644288431b56902616bced6386a5.tar.gz
newspipe-55ced419e816644288431b56902616bced6386a5.tar.bz2
newspipe-55ced419e816644288431b56902616bced6386a5.zip
Updated bootstrap script for Vagrant.
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/bootstrap.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index a1561736..fba8b5c9 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -20,11 +20,11 @@ cd JARR
apt-get install -y libxml2-dev libxslt1-dev
# installation with pip
wget https://bootstrap.pypa.io/get-pip.py
-sudo python3.4 get-pip.py
+sudo python3.5 get-pip.py
rm get-pip.py
sudo pip3 install --upgrade -r requirements.txt
# copy of the default configuration files for vagrant
-cp vagrant/conf.cfg-sample conf/conf.cfg
+cp vagrant/conf.cfg-sample src/conf/conf.cfg
cd ..
# Configuration of the database
@@ -38,13 +38,13 @@ echo "GRANT ALL PRIVILEGES ON DATABASE aggregator TO vagrant;" | sudo -u postgre
# Initializes the database
cd JARR
chown -R vagrant:vagrant .
-sudo -u vagrant python3 manager.py db_empty
-sudo -u vagrant python3 manager.py db_create
+sudo -u vagrant python3 src/manager.py db_empty
+sudo -u vagrant python3 src/manager.py db_create
# start JARR at startup
echo "#!/bin/sh -e" > /etc/rc.local
echo "cd /home/vagrant/JARR/" >> /etc/rc.local
-echo "sudo -u vagrant python3 runserver.py &" >> /etc/rc.local
+echo "sudo -u vagrant python3 src/runserver.py &" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
chmod 755 /etc/rc.local
@@ -55,7 +55,7 @@ sudo /etc/init.d/rc.local start
#write out current crontab
sudo -u vagrant crontab -l > mycron
#echo new cron into cron file
-sudo -u vagrant echo "*/30 * * * * cd /home/vagrant/JARR/ ; python3 manager.py fetch_asyncio None None" >> mycron
+sudo -u vagrant echo "*/30 * * * * cd /home/vagrant/JARR/ ; python3 src/manager.py fetch_asyncio None None" >> mycron
#install new cron file
sudo -u vagrant crontab mycron
sudo -u vagrant rm mycron
bgstack15