fix broken lxc-*.in scripts

Commit 92c7f62955 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>
This commit is contained in:
Greg Kurz 2011-09-20 11:18:39 +02:00 committed by Daniel Lezcano
parent 165015211f
commit 4e04d51500
3 changed files with 7 additions and 2 deletions

View File

@ -50,6 +50,7 @@ shortoptions='hn:f:t:'
longoptions='help,name:,config:,template:' longoptions='help,name:,config:,template:'
lxc_path=@LXCPATH@ lxc_path=@LXCPATH@
bindir=@BINDIR@ bindir=@BINDIR@
libdir=@LIBDIR@
templatedir=@LXCTEMPLATEDIR@ templatedir=@LXCTEMPLATEDIR@
getopt=$(getopt -o $shortoptions --longoptions $longoptions -- "$@") getopt=$(getopt -o $shortoptions --longoptions $longoptions -- "$@")

View File

@ -72,12 +72,14 @@ lxc_dropcaps()
chmod 0755 @LXCPATH@ chmod 0755 @LXCPATH@
} }
libdir=@LIBDIR@
localstatedir=@LOCALSTATEDIR@
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
echo "You have to be root to run this script" echo "You have to be root to run this script"
exit 1 exit 1
fi fi
if [ $? != 0 ]; then if [ $? != 0 ]; then
usage usage
exit 1 exit 1

View File

@ -70,12 +70,14 @@ lxc_dropuid()
chmod 0755 @LXCPATH@ chmod 0755 @LXCPATH@
} }
libdir=@LIBDIR@
localstatedir=@LOCALSTATEDIR@
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
echo "You have to be root to run this script" echo "You have to be root to run this script"
exit 1 exit 1
fi fi
if [ $? != 0 ]; then if [ $? != 0 ]; then
usage usage
exit 1 exit 1