diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 13:09:45 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 13:09:45 +0100 |
commit | 2df00fb4fadce2f5e966ed3ee944f8d502c8d02b (patch) | |
tree | 11cdb0194d4aede0e1890f83d65b3aae4f3db5dc /bins | |
parent | caa5f0ca50be6f5604e01dcfa62de9fbb1bbe929 (diff) | |
download | trove-setup-2df00fb4fadce2f5e966ed3ee944f8d502c8d02b.tar.gz |
Add mason configuration to trove-early-setup
Diffstat (limited to 'bins')
-rwxr-xr-x | bins/trove-early-setup | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup index 147916c..6954a8c 100755 --- a/bins/trove-early-setup +++ b/bins/trove-early-setup @@ -1,7 +1,7 @@ #!/usr/bin/make -f # -*- Make -*- -all: substitutions-done gitano-configured lorry-configured cache-configured +all: substitutions-done gitano-configured lorry-configured cache-configured mason-configured USERS := git lorry cache @@ -88,3 +88,15 @@ cache-setup: /home/cache/.cache-setup touch $@ cache-configured: cache-setup + +mason-setup: /home/git/.mason-setup +/home/git/.mason-setup: gitano-configured + PREFIX=$$(echo "##PREFIX##" | sed -f /etc/trove-setup.sed); \ + su -c "ssh localhost create $${PREFIX}/mason-config" - git; \ + su -c "git clone ssh://localhost/$${PREFIX}/mason-config.git /tmp/mason-config" - git + su -c "cd /tmp/mason-config; mkdir ci1; echo '[]' > ci1/systems.json.txt" - git + su -c "cd /tmp/mason-config; echo '[]' > ci1/hosts.json.txt" - git + su -c "cd /tmp/mason-config; git add ci1; git commit -m 'Set initial Mason config'; git push origin master" - git + su -c "rm -fr /tmp/mason-config" - git + +mason-configured: mason-setup |