aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkjail
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mkjail')
-rwxr-xr-xtrunk/src/mkjail11
1 files changed, 6 insertions, 5 deletions
diff --git a/trunk/src/mkjail b/trunk/src/mkjail
index 47930b2..4b00c38 100755
--- a/trunk/src/mkjail
+++ b/trunk/src/mkjail
@@ -1,7 +1,6 @@
#!/bin/bash
#
-# mkjail v0.4: chroot jail maker
-#
+# mkjail: chroot jail maker
# feedback: rhatto at riseup.net | GPL
#
# Mkjail is free software; you can redistribute it and/or modify it under the
@@ -16,6 +15,8 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA
#
+# $Rev$ - $Author$
+#
COMMON="/usr/libexec/simplepkg/common.sh"
BASENAME="`basename $0`"
@@ -46,8 +47,8 @@ function exec_post_install_scripts {
fi
echo "$BASENAME: executing template scripts..."
- if [ -d "$TEMPLATE_BASE.s" ]; then
- for file in $TEMPLATE_BASE.s/*; do
+ if [ -d "`template_scripts`" ]; then
+ for file in `template_scripts`/*; do
if [ -x "$file" ]; then
$file $1 $2
fi
@@ -89,7 +90,7 @@ if [ "$result" != "0" ]; then
exit 1
fi
-TEMPLATE="$TEMPLATE_BASE.template"
+TEMPLATE="`template_packages`"
if [ ! -d "$JAIL_ROOT/$server" ]; then
mkdir -p $JAIL_ROOT/$server