From 0a8e74110f01c4b0a6e09100d7ac35b7ed1a172c Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 13 Jan 2018 09:37:38 +0100 Subject: [PATCH] add a cronjob to trigger the currency updates --- Vagrantfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 42bf2e5..1c9461d 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -43,6 +43,10 @@ Vagrant.configure("2") do |config| systemctl restart apache2.service /vagrant/ansible/roles/web_AI-5/tasks/setup_script.sh + + #insert the currency update cronjob + echo "wget -O /dev/null http://localhost:8080" > /etc/cron.hourly/currency_update + chmod +x /etc/cron.hourly/currency_update SHELL end