summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 11:46:49 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 11:46:49 +0100
commitcaa5f0ca50be6f5604e01dcfa62de9fbb1bbe929 (patch)
treed2ef6eb97428eb46e144436d27b11b1aa5dfdc44
parent66f140597f236ba846626e252a86980bfb778434 (diff)
downloadtrove-setup-caa5f0ca50be6f5604e01dcfa62de9fbb1bbe929.tar.gz
Configure lorry-controller for cron
-rwxr-xr-xbins/trove-early-setup1
1 files changed, 1 insertions, 0 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup
index d15bff6..147916c 100755
--- a/bins/trove-early-setup
+++ b/bins/trove-early-setup
@@ -77,6 +77,7 @@ lorry-controller-configured: /home/lorry/.lorry-controller-setup
su -c "cd /tmp/lorries; git add lorry-controller.conf; git commit -m 'Initial configuration'; git push origin master" - git
su -c "rm -rf /tmp/lorries" - git
su -c "cd /home/lorry/lorry-controller-area/git; git remote update; git checkout master" - lorry
+ su -c "echo '*/5 * * * * flock -x -n /home/lorry/lorry-controller-area/lockfile -c lorry-controller --work-area=/home/lorry/lorry-controller-area' | crontab -" - lorry
touch $@
lorry-configured: lorry-setup lorry-controller-configured