git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to revision 2844
[util-vserver.git]
/
scripts
/
vserver
diff --git
a/scripts/vserver
b/scripts/vserver
index
bcb936e
..
62405a6
100755
(executable)
--- a/
scripts/vserver
+++ b/
scripts/vserver
@@
-166,12
+166,13
@@
test "$cmd" != build || { shift 2; exec $_VNAMESPACE --new -- \
allow_legacy=
case "$vserver" in
allow_legacy=
case "$vserver" in
- (./*) VSERVER_DIR=
`pwd`/$vserver
;;
- (/*) VSERVER_DIR=
$vserver
;;
- (*) VSERVER_DIR=
$__CONFDIR/$vserver
+ (./*) VSERVER_DIR=
"`pwd`/$vserver"
;;
+ (/*) VSERVER_DIR=
"$vserver"
;;
+ (*) VSERVER_DIR=
"$__CONFDIR/$vserver"
allow_legacy=1
;;
esac
allow_legacy=1
;;
esac
+VSERVER_DIR="${VSERVER_DIR%%/}"
if test -n "$allow_legacy"; then
do_legacy=
if test -n "$allow_legacy"; then
do_legacy=