mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 11:01:26 +00:00
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:
parent
3a74e9097a
commit
84ad17ede0
@ -299,6 +299,7 @@ container_setup() {
|
|||||||
container_net && \
|
container_net && \
|
||||||
container_hostname && \
|
container_hostname && \
|
||||||
container_auth && \
|
container_auth && \
|
||||||
|
container_sshd && \
|
||||||
container_conf
|
container_conf
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
die 1 "container_setup(): one step didn't complete, sorry\n"
|
die 1 "container_setup(): one step didn't complete, sorry\n"
|
||||||
@ -649,6 +650,14 @@ container_auth()
|
|||||||
printf " => done.\n"
|
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
|
# lxc configuration files
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user