used $DEFAULT_VSERVERDIR and $DEFAULT_VSERVERPKGDIR instead of the
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Oct 2003 23:23:11 +0000 (23:23 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Oct 2003 23:23:11 +0000 (23:23 +0000)
hardcoded '/vservers' values

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@293 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver-build
util-vserver/scripts/vserver-build.functions

index 83aee84..4355d67 100755 (executable)
@@ -38,9 +38,9 @@ Options:
     --force     ...  remove/rename already existing vservers with the same name
     -m <method> ...  use method <method>; see below for possible values
     --rootdir <dir>
-                ...  [default: /vservers]
+                ...  [default: $DEFAULT_VSERVERDIR]
     --pkgcfgbase <dir>
-                ...  [default: <rootdir>/.pkg]
+                ...  [default: $DEFAULT_VSERVERPKGDIR]
       
 cfg-options are: $SETUP_HELPMSG
 
index bb7e9a8..6ac121e 100644 (file)
@@ -73,7 +73,7 @@ function _setRootDir
 {
     test -z "$ROOTDIR" || return 0
     
-    for item in "\"$CONFDIR/.defaults/vdirbase\" 1" "/vservers"; do
+    for item in "\"$CONFDIR/.defaults/vdirbase\" 1" "$DEFAULT_VSERVERDIR"; do
        eval set -- "$item"
        ROOTDIR=$1
        ROOTDIR_REL=$2
@@ -90,7 +90,7 @@ function _setPkgCfgBase
 {
     test -z "$PKGCFGBASE" || return 0
 
-    for item in "\"$CONFDIR/.defaults/apps/pkgmgmt/base\" 1" "$ROOTDIR/.pkg"; do
+    for item in "\"$CONFDIR/.defaults/apps/pkgmgmt/base\" 1" "$ROOTDIR/.pkg" "$DEFAULT_VSERVERPKGDIR"; do
        eval set -- "$item"
        PKGCFGBASE=$1
        PKGCFGBASE_REL=$2