From 3740a024b7d9da9c842ca953c994dfaa5eb5ae2d Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 9 Apr 2014 21:25:54 +0200 Subject: [PATCH] fix: in some image, ``/root/.ssh`` does not exist leading to charm failure. --- precise/base-0k/hooks/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/precise/base-0k/hooks/install b/precise/base-0k/hooks/install index b83d8e7..647eebb 100755 --- a/precise/base-0k/hooks/install +++ b/precise/base-0k/hooks/install @@ -122,6 +122,8 @@ EOF cp src/etc/ssh/lxc_git_access_id_rsa /etc/ssh/lxc_git_access_id_rsa chmod 0600 /etc/ssh/lxc_git_access_id_rsa +mkdir -p ~/.ssh + cat < ~/.ssh/config Host git.0k.io @@ -145,4 +147,3 @@ cd /opt/apps && git clone git.0k.io:/var/git/0k/git-sub && ln -sf /opt/apps/git-sub/git-sub /usr/lib/git-core/ ) -