[lxc-devel] [PATCH] enable sshd by default like other templates
Guillaume ZITTA
lxc at zitta.fr
Wed Apr 2 05:59:46 UTC 2014
enable sshd by default like other templates
Signed-off-by: Guillaume ZITTA <lxc at zitta.fr>
---
templates/lxc-gentoo.in | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in
index de427dd..398987c 100644
--- a/templates/lxc-gentoo.in
+++ b/templates/lxc-gentoo.in
@@ -288,6 +288,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"
@@ -638,6 +639,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
################################################################################
--
1.9.0
More information about the lxc-devel
mailing list