summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-21 19:22:37 (GMT)
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-27 11:46:49 (GMT)
commitbfdff063f3b8cda46edb3b3cb50a8763c7969d7d (patch)
tree2da3135901a5db1449fa6ebfb4470325b5345a52
parent7bc0001d3efdf0211a75b08b9f63a87783cbe3ad (diff)
downloaddefinitions-baserock/richardipsum/distbuild-with-setup_br.tar.gz
Don't fail if /root/.ssh is already therebaserock/richardipsum/distbuild-with-setup_br
-rw-r--r--distbuild.configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/distbuild.configure b/distbuild.configure
index eb2ef04..e802206 100644
--- a/distbuild.configure
+++ b/distbuild.configure
@@ -152,7 +152,7 @@ fcgi-server = False
EOF
echo "Copy distbuild worker SSH key to system"
-mkdir "$1/root/.ssh"
+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"