diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 11:46:49 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 11:46:49 +0100 |
commit | caa5f0ca50be6f5604e01dcfa62de9fbb1bbe929 (patch) | |
tree | d2ef6eb97428eb46e144436d27b11b1aa5dfdc44 /bins/trove-early-setup | |
parent | 66f140597f236ba846626e252a86980bfb778434 (diff) | |
download | trove-setup-caa5f0ca50be6f5604e01dcfa62de9fbb1bbe929.tar.gz |
Configure lorry-controller for cron
Diffstat (limited to 'bins/trove-early-setup')
-rwxr-xr-x | bins/trove-early-setup | 1 |
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 |