aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/mkjail5
1 files changed, 4 insertions, 1 deletions
diff --git a/trunk/src/mkjail b/trunk/src/mkjail
index c4bf882..5284bfc 100755
--- a/trunk/src/mkjail
+++ b/trunk/src/mkjail
@@ -39,13 +39,16 @@ function exec_post_install_scripts {
# exec post installation scripts
# usage: exec_post_install_script <jail-root> <jail-name>
+ local list
+
if [ -z "$2" ]; then
return 1
fi
echo "$BASENAME: executing template scripts..."
if [ -d "$TEMPLATE_BASE.s" ]; then
- for command in `ls $TEMPLATE_BASE.s/`; do
+ list="`ls $TEMPLATE_BASE.s/`"
+ for command in $list; do
if [ -x "$TEMPLATE_BASE.s/$command" ]; then
exec $TEMPLATE_BASE.s/$command $1 $2
fi