}
+function update_template_files {
+
+ # update template files from svn
+ # usage: update_template_files
+
+ if use_svn && [ -d "$TEMPLATE_BASE.d/.svn" ]; then
+ echo Checking out last template revision from svn...
+ cd `dirname $TEMPLATE_BASE`
+ svn update
+ fi
+
+}
+
function copy_template_files {
# copy template files into jail
if [ -d "$1" ]; then
if [ -d "$TEMPLATE_BASE.d" ]; then
+ echo "Copying template files to $1..."
if use_svn && [ -d "$TEMPLATE_BASE.d/.svn" ]; then
- echo Checking out last template revision from svn...
- svn update
- echo "Copying template files to $1..."
rsync -av --exclude=.svn $TEMPLATE_BASE.d/ $1/
else
- echo "Copying template files to $1..."
rsync -av $TEMPLATE_BASE.d/ $1/
fi
fi