diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-03-29 17:19:55 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-03-29 17:19:55 +0000 |
commit | 090aba192f0fe01c962ac9ee5e5ad3cc5a5bdf3f (patch) | |
tree | 8f588b6cb4d50f94ceb2784f162e9191d2912ff2 /ezjail.sh | |
parent | db9c85aad02a7fdb1673be212871757e2b62d338 (diff) |
ezjail.sh now honours rcorders script order
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -45,13 +45,14 @@ do_cmd() | |||
45 | ezjail_list=`echo -n $* | tr -c "[:alnum:] " _` | 45 | ezjail_list=`echo -n $* | tr -c "[:alnum:] " _` |
46 | ezjail_fromrc="NO" | 46 | ezjail_fromrc="NO" |
47 | else | 47 | else |
48 | ezjail_list=${ezjail_list:-`ls ${ezjail_prefix}/etc/ezjail/`} | 48 | ezjail_list=${ezjail_list:-`rcorder ${ezjail_prefix}/etc/ezjail/*`} |
49 | ezjail_list=`basename -a ${ezjail_list}` | ||
49 | echo -n "${message##_}" | 50 | echo -n "${message##_}" |
50 | fi | 51 | fi |
51 | 52 | ||
52 | for ezjail in ${ezjail_list}; do | 53 | for ezjail in ${ezjail_list}; do |
53 | # If jail is temporary disabled (dot in name), skip it | 54 | # If jail is temporary disabled (dot in name), skip it |
54 | [ ${ezjail%.*} = ${ezjail} ] || continue | 55 | [ ${ezjail%.*} != ${ezjail} ] && continue |
55 | 56 | ||
56 | # Check for jails config | 57 | # Check for jails config |
57 | [ ! -r ${ezjail_prefix}/etc/ezjail/${ezjail} ] && echo " Warning: Jail ${ezjail} not found." && continue | 58 | [ ! -r ${ezjail_prefix}/etc/ezjail/${ezjail} ] && echo " Warning: Jail ${ezjail} not found." && continue |