]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
enable sshd by default like other templates
authorGuillaume ZITTA <lxc@zitta.fr>
Wed, 2 Apr 2014 05:59:46 +0000 (07:59 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Apr 2014 14:53:13 +0000 (10:53 -0400)
Signed-off-by: Guillaume ZITTA <lxc@zitta.fr>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-gentoo.in

index d975f789a4b9e239d874f13bba3a606d642b1f41..5a87866cc19e718618ec06ad37f610545e028fd3 100644 (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
 ################################################################################