From 55ced419e816644288431b56902616bced6386a5 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 22 Dec 2015 16:42:44 +0100 Subject: Updated bootstrap script for Vagrant. --- vagrant/bootstrap.sh | 12 ++++++------ 1 file 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 -- cgit