diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 21:36:38 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 21:36:38 +0000 |
commit | 58a2ca5c45ef2758b17d7c119f676c4e4e27cee2 (patch) | |
tree | 05213261b21f3ac97bc57b5ad347b330052ab1b6 /trunk/src | |
parent | 865931f616e333c151f70536344d877321f27e96 (diff) | |
download | simplepkg-58a2ca5c45ef2758b17d7c119f676c4e4e27cee2.tar.gz simplepkg-58a2ca5c45ef2758b17d7c119f676c4e4e27cee2.tar.bz2 |
mkjail: small change
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@301 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src')
-rwxr-xr-x | trunk/src/mkjail | 5 |
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 |