mirror of
git://github.com/lxc/lxc
synced 2025-08-31 04:39:34 +00:00
use correct lxc-init path in sshd template
lxc-init got moved into SBINDIR/init.lxc recently. This broke sshd template because path wasn't updated there. This patch should fix this issue. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
committed by
Stéphane Graber
parent
91828b0e1f
commit
8a2fdf50ad
@@ -218,7 +218,7 @@ fi
|
||||
if [ $0 = "/sbin/init" ]; then
|
||||
|
||||
PATH="$PATH:/bin:/sbin:/usr/sbin"
|
||||
check_for_cmd @LXCINITDIR@/lxc/lxc-init
|
||||
check_for_cmd @SBINDIR@/init.lxc
|
||||
check_for_cmd sshd
|
||||
sshd_path=$cmd_path
|
||||
|
||||
@@ -237,7 +237,7 @@ EOF
|
||||
ifconfig eth0 |grep inet
|
||||
fi
|
||||
|
||||
exec @LXCINITDIR@/lxc/lxc-init -- $sshd_path
|
||||
exec @SBINDIR@/init.lxc -- $sshd_path
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user