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
ready for tagging
[util-vserver.git]
/
scripts
/
vsomething
diff --git
a/scripts/vsomething
b/scripts/vsomething
index
d606021
..
a8680e7
100755
(executable)
--- a/
scripts/vsomething
+++ b/
scripts/vsomething
@@
-1,5
+1,5
@@
#! /bin/bash
#! /bin/bash
-# $Id: vsomething 2
303 2006-09-12 12:39:0
0Z dhozac $
+# $Id: vsomething 2
599 2007-08-26 21:30:5
0Z dhozac $
# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
@@
-106,10
+106,11
@@
for i in "${vservers[@]}"; do
if pkgmgmt.isInternal "$i"; then
$_VSERVER "$i" exec "$cmd" "$@"
else
if pkgmgmt.isInternal "$i"; then
$_VSERVER "$i" exec "$cmd" "$@"
else
- _getVserverDir "$i"
+ _setVserverDir "$i"
+ # subshell so we don't have to clean up
( _generateChbindOptions "$VSERVER_DIR"
( _generateChbindOptions "$VSERVER_DIR"
- $_VSERVER "$i" status &> /dev/null
&&
\
- CHBIND_CMD=(
"$_CHBIND" "${CHBIND_OPTS[@]}" --
)
+ $_VSERVER "$i" status &> /dev/null
||
\
+ CHBIND_CMD=()
callInNamespace "$i" \
"$_VNAMESPACE" --new -- \
"${CHBIND_CMD[@]}" \
callInNamespace "$i" \
"$_VNAMESPACE" --new -- \
"${CHBIND_CMD[@]}" \