diff options
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
|