mirror of
git://github.com/lxc/lxc
synced 2025-09-03 22:19:30 +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
|
if [ $0 = "/sbin/init" ]; then
|
||||||
|
|
||||||
PATH="$PATH:/bin:/sbin:/usr/sbin"
|
PATH="$PATH:/bin:/sbin:/usr/sbin"
|
||||||
check_for_cmd @LXCINITDIR@/lxc/lxc-init
|
check_for_cmd @SBINDIR@/init.lxc
|
||||||
check_for_cmd sshd
|
check_for_cmd sshd
|
||||||
sshd_path=$cmd_path
|
sshd_path=$cmd_path
|
||||||
|
|
||||||
@@ -237,7 +237,7 @@ EOF
|
|||||||
ifconfig eth0 |grep inet
|
ifconfig eth0 |grep inet
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec @LXCINITDIR@/lxc/lxc-init -- $sshd_path
|
exec @SBINDIR@/init.lxc -- $sshd_path
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user