summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-28 16:14:24 (GMT)
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-28 16:34:55 (GMT)
commit0d2438048f6aef751c811dca29609198fc5cbad9 (patch)
tree1d80c124ad7e085db46814754c89bd80d09a8e97
parent1237487daa3515ee9687b2aa4abcc0ff3b7c52dd (diff)
downloaddefinitions-0d2438048f6aef751c811dca29609198fc5cbad9.tar.gz
Make distbuild config extension generate known_hosts filebaserock/richardipsum/distbuild-with-setup2_br
-rw-r--r--distbuild.configure2
1 files changed, 2 insertions, 0 deletions
diff --git a/distbuild.configure b/distbuild.configure
index e802206..31afc81 100644
--- a/distbuild.configure
+++ b/distbuild.configure
@@ -156,4 +156,6 @@ mkdir -p "$1/root/.ssh"
install -m 0600 "$WORKER_SSH_KEY" "$1/root/.ssh/id_rsa"
install -m 0644 "${WORKER_SSH_KEY}.pub" "$1/root/.ssh/id_rsa.pub"
+# Add trove's host key
+ssh-keyscan -t dsa,ecdsa,rsa "$TROVE_ID" >> "$1/root/.ssh/known_hosts"
fi