# usage: copy_template_files <jail-path>
if [ -d "$1" ]; then
- echo "$BASENAME: copying template files..."
+ echo "Copying template files to $1..."
if [ -d "$TEMPLATE_BASE.d" ]; then
if use_svn && [ -d "$TEMPLATE_BASE.d/.svn" ]; then
svn update
# usage: set_jail_perms <jail-path>
if [ -s "$TEMPLATE_BASE.perms" ]; then
+ echo Setting jail $1 permissions...
cat $TEMPLATE_BASE.perms | while read entry; do
file="`echo $entry | cut -d ";" -f 1`"
if [ -a "$TEMPLATE_BASE.d/$file" ] && [ -a "$1/$file" ]; then