From 10cf16dce5a90061e36a03d9413571f132c5d5cc Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 17 Oct 2013 14:28:31 +0200 Subject: [PATCH] MT#4481 Do not re-create .ssh/authorized_keys but append data Otherwise we're overwriting the ssh setup which is deployed in PRO environments. --- deployment.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment.sh b/deployment.sh index 0cf8dd5..865f489 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1695,12 +1695,12 @@ vagrant_configuration() { echo "Adjusting ssh configuration for user sipwise" mkdir -p $TARGET/home/sipwise/.ssh/ - cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub > "${TARGET}/home/sipwise/.ssh/authorized_keys" + cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub >> "${TARGET}/home/sipwise/.ssh/authorized_keys" chroot "${TARGET}" chown sipwise:sipwise /home/sipwise/.ssh /home/sipwise/.ssh/authorized_keys echo "Adjusting ssh configuration for user root" mkdir -p "${TARGET}/root/.ssh/" - cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub > "${TARGET}/root/.ssh/authorized_keys" + cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub >> "${TARGET}/root/.ssh/authorized_keys" # see https://github.com/mitchellh/vagrant/issues/1673 # and https://bugs.launchpad.net/ubuntu/+source/xen-3.1/+bug/1167281