enable sshd by default like other templates

Signed-off-by: Guillaume ZITTA <lxc@zitta.fr>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Guillaume ZITTA 2014-04-02 07:59:46 +02:00 committed by Stéphane Graber
parent 3a74e9097a
commit 84ad17ede0

View File

@ -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
################################################################################