From 0e0b55d6eb7c7de0fa478f75074f3e06396b3d7f Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 18 Oct 2013 13:12:22 +0200 Subject: [PATCH] MT#4501 Normalize /home/sipwise also for chroot action --- deployment.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment.sh b/deployment.sh index b91d62b..9a887bf 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1703,10 +1703,10 @@ vagrant_configuration() { fi echo "Adjusting ssh configuration for user sipwise" - local homedir="${TARGET}/$(readlink -f $TARGET/home)" - mkdir -p "${homedir}/sipwise/.ssh/" - cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub >> "${homedir}/sipwise/.ssh/authorized_keys" - chroot "${TARGET}" chown sipwise:sipwise /home/sipwise/.ssh /home/sipwise/.ssh/authorized_keys + local homedir="$(readlink -f $TARGET/home)" + mkdir -p "${TARGET}/${homedir}/sipwise/.ssh/" + cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub >> "${TARGET}/${homedir}/sipwise/.ssh/authorized_keys" + chroot "${TARGET}" chown sipwise:sipwise ${homedir}/sipwise/.ssh ${homedir}/sipwise/.ssh/authorized_keys echo "Adjusting ssh configuration for user root" mkdir -p "${TARGET}/root/.ssh/"