[lxc-devel] [PATCH] enable sshd by default like other templates
Stéphane Graber
stgraber at ubuntu.com
Wed Apr 2 14:08:14 UTC 2014
On Wed, Apr 02, 2014 at 07:59:46AM +0200, Guillaume ZITTA wrote:
> enable sshd by default like other templates
>
> Signed-off-by: Guillaume ZITTA <lxc at zitta.fr>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
> ---
> 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
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140402/e5756fab/attachment.pgp>
More information about the lxc-devel
mailing list