]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
use correct lxc-init path in sshd template
authorNikolay Martynov <mar.kolya@gmail.com>
Thu, 1 May 2014 04:46:49 +0000 (00:46 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 1 May 2014 14:38:12 +0000 (10:38 -0400)
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>
templates/lxc-sshd.in

index 7e3d3d8b70dc20f746348897325a23a2423f8d73..569f12efb8117dd0f5ccaee4aab8e440677f58c7 100644 (file)
@@ -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