aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkjail
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-04 00:50:47 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-04 00:50:47 +0000
commitfcfc2248b2cf6a611836d0635a875fb10f93d74a (patch)
tree5d1fc31ccfd1e7b0b367b5ae54c8336ac988007d /trunk/src/mkjail
parentf9f16bb55714940883484f63b6daad9c279dd3ce (diff)
downloadsimplepkg-fcfc2248b2cf6a611836d0635a875fb10f93d74a.tar.gz
simplepkg-fcfc2248b2cf6a611836d0635a875fb10f93d74a.tar.bz2
new 'compact' template format
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@634 04377dda-e619-0410-9926-eae83683ac58
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