Add a way to associate a distribution with a default template.
[util-vserver.git] / scripts / vserver-build.template
index dc5d1c0..27616cb 100644 (file)
@@ -48,6 +48,13 @@ done
 
 getDistribution '' 1
 
+for d in "$__CONFDIR/.distributions/$DISTRIBUTION" \
+       "$__DISTRIBDIR/$DISTRIBUTION"; do
+    if test -r "$d/template"; then
+       TEMPLATE=( "$d/template" "${TEMPLATE[@]}" )
+    fi
+done
+
 base.init
 test -z "$use_pkgmgmt" || pkgmgmt.initVariables