]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix broken lxc-*.in scripts
authorGreg Kurz <gkurz@fr.ibm.com>
Tue, 20 Sep 2011 09:18:39 +0000 (11:18 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 20 Sep 2011 09:18:39 +0000 (11:18 +0200)
Commit 92c7f6295518decd3989b2790d758888551e7d9a broke the following scipts:
- lxc-setcap
- lxc-setuid
- lxc-create

This patch adds the missing variables to be substitued by the configure
script.

Cheers.

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-create.in
src/lxc/lxc-setcap.in
src/lxc/lxc-setuid.in

index 63750e9b8e1790a1d2b14bb1e3df6f33aa4e0700..d14c32e50ca60fa58d482051ad511a71c4e221fb 100644 (file)
@@ -50,6 +50,7 @@ shortoptions='hn:f:t:'
 longoptions='help,name:,config:,template:'
 lxc_path=@LXCPATH@
 bindir=@BINDIR@
+libdir=@LIBDIR@
 templatedir=@LXCTEMPLATEDIR@
 
 getopt=$(getopt -o $shortoptions --longoptions  $longoptions -- "$@")
index 322676986e425f424d6817afeb990ed9ab94514d..47954ab4a2a48ddf85d8dbef737e62224395ed93 100644 (file)
@@ -72,12 +72,14 @@ lxc_dropcaps()
     chmod 0755 @LXCPATH@
 }
 
+libdir=@LIBDIR@
+localstatedir=@LOCALSTATEDIR@
+
 if [ "$(id -u)" != "0" ]; then
     echo "You have to be root to run this script"
     exit 1
 fi
 
-
 if [ $? != 0 ]; then
     usage
     exit 1
index b1bbfff066cfbace4eb286a55bceafbd7f502130..00870a8a1877922cb83121e3645fce3a862839e2 100644 (file)
@@ -70,12 +70,14 @@ lxc_dropuid()
     chmod 0755 @LXCPATH@
 }
 
+libdir=@LIBDIR@
+localstatedir=@LOCALSTATEDIR@
+
 if [ "$(id -u)" != "0" ]; then
     echo "You have to be root to run this script"
     exit 1
 fi
 
-
 if [ $? != 0 ]; then
     usage
     exit 1