]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-netstat should use @LXCPATH@ for lxcpath=
authorAndrian Nord <nightnord@gmail.com>
Tue, 17 Nov 2009 09:56:24 +0000 (10:56 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 17 Nov 2009 09:56:24 +0000 (10:56 +0100)
Typo ;)

Signed-off-by: Andrian Nord <NightNord@gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-netstat.in

index 4ced22da45e1a79f1daca0ab3ecb2c85a962ca23..1fecc5e64a525d2d78635c5265e731d17cab378e 100644 (file)
@@ -1,13 +1,8 @@
 #!/bin/bash
 # set -ex
 
-lxcpath=/var/lib/lxc
 exec=""
 
-if [ ! -r $lxcpath ]; then
-    exit 0
-fi
-
 if [ $# -eq  0 ]; then
     echo "usage: $0 -n <name>"
     exit 1
@@ -23,7 +18,7 @@ for i in $*; do
 done
 
 if [ -z "$exec" ]; then
-    exec /usr/bin/lxc-unshare -s MOUNT -- /usr/bin/lxc-netstat -n $name --exec $*
+    exec @BINDIR@/lxc-unshare -s MOUNT -- $0 -n $name --exec $*
 fi
 
 if [ -z "$name" ]; then