summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-18 10:03:54 +0200
committerErich Eckner <git@eckner.net>2017-05-18 10:03:54 +0200
commita5471a4ac3c25a2cb9181ddb7dcaf3c651169f97 (patch)
treec3f8b1a683c568884034e6aabb8fe2ed49a79e88 /conf
parentce71dbb525ac523e8e367295557c3d3346388fc4 (diff)
downloadbuilder-a5471a4ac3c25a2cb9181ddb7dcaf3c651169f97.tar.xz
conf/default.conf: set up ssh key, too
Diffstat (limited to 'conf')
-rwxr-xr-xconf/default.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/default.conf b/conf/default.conf
index 6db259d..94ef1db 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -58,3 +58,9 @@ for repo in "${!repo_paths[@]}"; do
fi
done
+
+if [ "${master_build_server_identity}" == "${work_dir}/.ssh/id_rsa" ] && \
+ [ ! -f "${master_build_server_identity}" ]; then
+ mkdir -p "${master_build_server_identity%/*}"
+ ssh-keygen -b4096 -f "${master_build_server_identity}"
+fi