Commit fe826aae by Nikolay Martynov Committed by Stéphane Graber

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: 's avatarNikolay Martynov <mar.kolya@gmail.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 04c2f6f8
...@@ -218,7 +218,7 @@ fi ...@@ -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 ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment