From: Guillaume ZITTA Date: Wed, 2 Apr 2014 05:59:46 +0000 (+0200) Subject: enable sshd by default like other templates X-Git-Tag: lxc-1.1.0.alpha1~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84ad17ede0febe7cc0d19e1125c25e549dc9104f;p=thirdparty%2Flxc.git enable sshd by default like other templates Signed-off-by: Guillaume ZITTA Acked-by: Stéphane Graber --- 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 ################################################################################