From 84ad17ede0febe7cc0d19e1125c25e549dc9104f Mon Sep 17 00:00:00 2001 From: Guillaume ZITTA Date: Wed, 2 Apr 2014 07:59:46 +0200 Subject: [PATCH] enable sshd by default like other templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guillaume ZITTA Acked-by: Stéphane Graber --- templates/lxc-gentoo.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in index d975f789a..5a87866cc 100644 --- a/templates/lxc-gentoo.in +++ b/templates/lxc-gentoo.in @@ -299,6 +299,7 @@ container_setup() { container_net && \ container_hostname && \ container_auth && \ + container_sshd && \ container_conf if [ $? -ne 0 ]; then die 1 "container_setup(): one step didn't complete, sorry\n" @@ -649,6 +650,14 @@ container_auth() printf " => done.\n" } +container_sshd() { + printf "#### container_sshd(): enabling sshd... \n" + + chroot "${rootfs}" rc-update add sshd || die 1 "failed to enable sshd\n" + + printf " => done.\n" +} + ################################################################################ # lxc configuration files ################################################################################