Changeset 2554

Show
Ignore:
Timestamp:
06/25/07 00:04:22 (1 year ago)
Author:
dhozac
Message:

Add a way to associate a distribution with a default template.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/doc/configuration.xml

    r2547 r2554  
    413413      </link> 
    414414    </collection> 
     415    <link name="template"> 
     416      <description> 
     417Symlink to the default template for this distribution. 
     418      </description> 
     419    </link> 
    415420  </collection> 
    416421   
  • trunk/scripts/vserver-build.template

    r2532 r2554  
    4949getDistribution '' 1 
    5050 
     51for d in "$__CONFDIR/.distributions/$DISTRIBUTION" \ 
     52        "$__DISTRIBDIR/$DISTRIBUTION"; do 
     53    if test -r "$d/template"; then 
     54        TEMPLATE=( "$d/template" "${TEMPLATE[@]}" ) 
     55    fi 
     56done 
     57 
    5158base.init 
    5259test -z "$use_pkgmgmt" || pkgmgmt.initVariables