X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvserver-copy;h=49396fcd9b5dc9cb23d362e122e5073fb3437abe;hb=bbda8c655efb11b84c25b854aaa2cb4d42ebf122;hp=321cfda74f14cef50e27dd8534e2e302b347ea80;hpb=732a86ac5e988c1be41076b609266130bdb3e8bb;p=util-vserver.git diff --git a/util-vserver/scripts/vserver-copy b/util-vserver/scripts/vserver-copy index 321cfda..49396fc 100755 --- a/util-vserver/scripts/vserver-copy +++ b/util-vserver/scripts/vserver-copy @@ -36,9 +36,9 @@ # used so that if/when you reboot the source roothost you don't have the # same vserver and IP address running on two machines. -: ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars} +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} test -e "$UTIL_VSERVER_VARS" || { - echo "Can not find util-vserver installation; aborting..." + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2 exit 1 } . "$UTIL_VSERVER_VARS" @@ -99,7 +99,7 @@ flag a vserver can even be operationally moved to different hardware within seconds. The -i and -d flags can be used to minimally reconfigure the destination -vserver (rewrites /etc/vservers/newname.conf and /vservers/newname/etc/hosts) +vserver (rewrites /etc/vservers/newname.conf and $DEFAULT_VSERVERDIR/newname/etc/hosts) Options: -h, --help this help @@ -143,7 +143,7 @@ rsh=(false) colon=":" domain="" ip="" -vsroot="/vservers" +vsroot=$DEFAULT_VSERVERDIR if [ $# -eq 0 ]; then # Script invoked with no command-line args? usage