From 193c1a574dcfb30b1b9e53602067ea7df5625552 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 18 Oct 2013 14:03:12 +0200 Subject: [PATCH] MT#4501 Use plain /home for CE/Debian and follow symlink only if /home is a symlink --- deployment.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index 9a887bf..89b4249 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1703,7 +1703,11 @@ vagrant_configuration() { fi echo "Adjusting ssh configuration for user sipwise" - local homedir="$(readlink -f $TARGET/home)" + if [ -L "$TARGET/home" ] ; then + local homedir="$(readlink -f $TARGET/home)" # PRO + else + local homedir='/home' # CE/plain Debian + fi 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