summaryrefslogtreecommitdiff
path: root/bins
diff options
context:
space:
mode:
Diffstat (limited to 'bins')
-rwxr-xr-xbins/trove-early-setup14
1 files changed, 13 insertions, 1 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup
index 1ba4e3a..9c8fd65 100755
--- a/bins/trove-early-setup
+++ b/bins/trove-early-setup
@@ -27,5 +27,17 @@ $(eval $(foreach USER,$(USERS),$(call make_user_rules,$(USER))))
users: $(ALL_USER_TARGETS)
-gitano-configured: users
+gitano-setup: /home/git/.gitano-setup
+/home/git/.gitano-setup:
su -c 'gitano-setup /etc/gitano-setup.clod' - git
+ touch $@
+
+gitano-configured: gitano-lorry-setup
+
+gitano-lorry-setup: /home/git/.gitano-lorry-setup
+
+/home/git/.gitano-lorry-setup:
+ cp /home/lorry/.ssh/id_rsa.pub /tmp/lorry.pub
+ su -c 'ssh git@localhost as lorry sshkey add trove < /tmp/lorry.pub' - git
+ rm /tmp/lorry.pub
+