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>
longoptions='help,name:,config:,template:'
lxc_path=@LXCPATH@
bindir=@BINDIR@
+libdir=@LIBDIR@
templatedir=@LXCTEMPLATEDIR@
getopt=$(getopt -o $shortoptions --longoptions $longoptions -- "$@")
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
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