use $_<prog> (which expands to absolute paths) instead of trusting into a good $PATH
[util-vserver.git] / util-vserver / scripts / vserver-build
index 29b4ca5..efe1117 100755 (executable)
@@ -18,7 +18,7 @@
 
 : ${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"
@@ -32,14 +32,14 @@ function showHelp()
 {
     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
@@ -56,7 +56,7 @@ Possible methods are:
     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"
@@ -80,7 +80,7 @@ the GNU General Public License.  This program has absolutely no warranty."
 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