From 8a2fdf50ad3e771032476b1d0d65aa1cb44ee999 Mon Sep 17 00:00:00 2001 From: Nikolay Martynov Date: Thu, 1 May 2014 00:46:49 -0400 Subject: [PATCH] use correct lxc-init path in sshd template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Stéphane Graber --- templates/lxc-sshd.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lxc-sshd.in b/templates/lxc-sshd.in index 7e3d3d8b7..569f12efb 100644 --- a/templates/lxc-sshd.in +++ b/templates/lxc-sshd.in @@ -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