Commit 4e04d515 by Greg Kurz Committed by Daniel Lezcano

fix broken lxc-*.in scripts

Commit 92c7f629 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: 's avatarGreg Kurz <gkurz@fr.ibm.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 16501521
......@@ -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 -- "$@")
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment