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
Merge 0.30.214.
[util-vserver.git]
/
scripts
/
chcontext
diff --git
a/scripts/chcontext
b/scripts/chcontext
index
905d7e3
..
2fb254c
100755
(executable)
--- a/
scripts/chcontext
+++ b/
scripts/chcontext
@@
-1,5
+1,5
@@
#! /bin/bash
#! /bin/bash
-# $Id: chcontext 2
383 2006-11-17 18:48:33
Z dhozac $
+# $Id: chcontext 2
599 2007-08-26 21:30:50
Z dhozac $
# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
@@
-134,7
+134,8
@@
while true; do
shift
done
shift
done
-create_cmd=( $_VCONTEXT --create --silentexist
+create_cmd=( ${OPT_CTX:+$_VTAG --create --tag "$OPT_CTX" --silentexist --silent --}
+ $_VCONTEXT --create --silentexist
${OPT_SILENT:+--silent}
${OPT_CTX:+--xid "$OPT_CTX"} )
${OPT_SILENT:+--silent}
${OPT_CTX:+--xid "$OPT_CTX"} )
@@
-172,5
+173,6
@@
else
rc=254
fi
rc=254
fi
-test "$rc" -ne 254 || exec "${migrate_cmd[@]}" --xid "$OPT_CTX" --migrate -- "$@"
+test "$rc" -ne 254 || exec "$_VTAG" --migrate --tag "$OPT_CTX" --silent -- \
+ "${migrate_cmd[@]}" --xid "$OPT_CTX" --migrate -- "$@"
exit $rc
exit $rc