mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 16:46:21 +00:00
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:
parent
165015211f
commit
4e04d51500
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user