aboutsummaryrefslogtreecommitdiff
path: root/src/lxc
diff options
context:
space:
mode:
authorGreg Kurz <gkurz@fr.ibm.com>2011-09-20 11:18:39 +0200
committerDaniel Lezcano <dlezcano@fr.ibm.com>2011-09-20 11:18:39 +0200
commit4e04d515006816bbe629657b85d97476c9de240e (patch)
treed4d4ec501185b6dd1ab889c14d311b28631c4a4f /src/lxc
parentSet the utsname on the debian template (diff)
downloadlxc-4e04d515006816bbe629657b85d97476c9de240e.tar.gz
lxc-4e04d515006816bbe629657b85d97476c9de240e.tar.bz2
lxc-4e04d515006816bbe629657b85d97476c9de240e.zip
fix broken lxc-*.in scripts
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>
Diffstat (limited to 'src/lxc')
-rw-r--r--src/lxc/lxc-create.in1
-rw-r--r--src/lxc/lxc-setcap.in4
-rw-r--r--src/lxc/lxc-setuid.in4
3 files changed, 7 insertions, 2 deletions
diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in
index 63750e9..d14c32e 100644
--- a/src/lxc/lxc-create.in
+++ b/src/lxc/lxc-create.in
@@ -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 -- "$@")
diff --git a/src/lxc/lxc-setcap.in b/src/lxc/lxc-setcap.in
index 3226769..47954ab 100644
--- a/src/lxc/lxc-setcap.in
+++ b/src/lxc/lxc-setcap.in
@@ -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
diff --git a/src/lxc/lxc-setuid.in b/src/lxc/lxc-setuid.in
index b1bbfff..00870a8 100644
--- a/src/lxc/lxc-setuid.in
+++ b/src/lxc/lxc-setuid.in
@@ -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