diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-30 14:13:32 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-30 14:13:32 +0200 |
commit | 8abb94bb5f915b778624b7185545b26c747430a4 (patch) | |
tree | b55622d908eff5b005cb209b22cc25a9002a6877 /vagrant | |
parent | Displays the 'retrieved_date' instead of the 'id' in the /duplicates page. (diff) | |
download | newspipe-8abb94bb5f915b778624b7185545b26c747430a4.tar.gz newspipe-8abb94bb5f915b778624b7185545b26c747430a4.tar.bz2 newspipe-8abb94bb5f915b778624b7185545b26c747430a4.zip |
Create a cron job at the end of the bootstraping of Vagrant.
Diffstat (limited to 'vagrant')
-rw-r--r-- | vagrant/bootstrap.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh index 6952afc3..1361f69b 100644 --- a/vagrant/bootstrap.sh +++ b/vagrant/bootstrap.sh @@ -51,3 +51,12 @@ chmod 755 /etc/rc.local # Start the application.
/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/pyaggr3g470r/ ; python3 manager.py fetch_asyncio None None" >> mycron
+#install new cron file
+sudo -u vagrant crontab mycron
+sudo -u vagrant rm mycron
|