summaryrefslogtreecommitdiff
path: root/bins
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-24 10:09:03 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-24 10:09:03 +0100
commitd4b09fc6a4b870a1a22d5a259e9b51d71386d434 (patch)
tree91eca0abbbff6db05434136f449dbd78f17d2aec /bins
parentc060574362e4980d56a52c9a5983e971e46521ba (diff)
downloadtrove-setup-d4b09fc6a4b870a1a22d5a259e9b51d71386d434.tar.gz
Update default lorry controller config and add a README. All untested
Diffstat (limited to 'bins')
-rwxr-xr-xbins/trove-early-setup3
1 files changed, 2 insertions, 1 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup
index 4aad517..bf8733d 100755
--- a/bins/trove-early-setup
+++ b/bins/trove-early-setup
@@ -74,7 +74,8 @@ lorry-controller-configured: /home/lorry/.lorry-controller-setup
su -c "mkdir /home/lorry/lorry-controller-area" - lorry; \
su -c "git clone ssh://git@localhost/$${PREFIX}/local-config/lorries.git /home/lorry/lorry-controller-area/git" - lorry
su -c "sed -f /etc/trove-setup.sed < /usr/share/trove-setup/lorry-controller.conf > /tmp/lorries/lorry-controller.conf" - git
- su -c "cd /tmp/lorries; git add lorry-controller.conf; git commit -m 'Initial configuration'; git push origin master" - git
+ su -c "sed -f /etc/trove-setup.sed < /usr/share/trove-setup/README.lorry-controller > /tmp/lorries/README" - git
+ su -c "cd /tmp/lorries; git add README 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 '*/1 * * * * flock -x -n /home/lorry/lorry-controller-area/lockfile -c lorry-controller --work-area=/home/lorry/lorry-controller-area --log=syslog --log-level=info --html-file=/home/lorry/lc-status.html' | crontab -" - lorry