: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
test -e "$UTIL_VSERVER_VARS" || {
- echo "Can not find util-vserver installation; aborting..." >&2
+ echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
exit 1
}
. "$UTIL_VSERVER_VARS"
{
echo \
$"Usage: $(basename $0) -m <method> -n <name> --force <cfg-options>*
- --rootdir <dir> --pkgcfgbase <dir> [--] <method-args>*
+ --rootdir <dir> --pkgbase <dir> [--] <method-args>*
Options:
--force ... remove/rename already existing vservers with the same name
-m <method> ... use method <method>; see below for possible values
--rootdir <dir>
... [default: $DEFAULT_VSERVERDIR]
- --pkgcfgbase <dir>
+ --pkgbase <dir>
... [default: $DEFAULT_VSERVERPKGDIR]
cfg-options are: $SETUP_HELPMSG
skeleton ... -- [<cmd> <args>*]
... installs a minimal skeleton filesystem, creates the
configuration file and calls an optional command then
- debootstrap ... -- -d <distribution> [-m <mirror>]
+ debootstrap ... -- -d <distribution> [-m <mirror>] [-- <debootstrap-options>*]
bootstraps the vserver with Debian's 'debootstrap' package
Please report bugs to $PACKAGE_BUGREPORT"
set -e
declare -a default_opts=()
-test "$NO_DEFAULT_OPTS" || getFileArray default_opts "$CONFDIR/.defaults/apps/build/options"
+test "$NO_DEFAULT_OPTS" || getFileArray default_opts "$CONFDIR/.defaults/apps/build/options" || :
tmp=$(getopt -o +m:n: --long force,debug,help,version,rootdir:,pkgbase:,$SETUP_OPTIONS -n "$(basename $0)" -- \
"${default_opts[@]}" "$@") || exit 1