X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fchcontext;h=2fb254c95033e78676cde02b406e3bcbbf08cbd7;hb=a741f6faf2baae1e823d334012f6a09e6a1bda51;hp=905d7e38269cddb71f6cc23f779aa644da25e316;hpb=3b34449070c0846fdc49436d1edd5916512f1644;p=util-vserver.git diff --git a/scripts/chcontext b/scripts/chcontext index 905d7e3..2fb254c 100755 --- a/scripts/chcontext +++ b/scripts/chcontext @@ -1,5 +1,5 @@ #! /bin/bash -# $Id: chcontext 2383 2006-11-17 18:48:33Z dhozac $ +# $Id: chcontext 2599 2007-08-26 21:30:50Z dhozac $ # Copyright (C) 2004 Enrico Scholz # @@ -134,7 +134,8 @@ while true; do 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"} ) @@ -172,5 +173,6 @@ else 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