diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-04-01 18:27:52 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-04-01 18:27:52 +0000 |
commit | cd8742e9dcff169861dd4d03eb637314da9f91d6 (patch) | |
tree | e53b5bb9787ef29d4b687155d401bc6a5e937cd6 /ezjail-admin | |
parent | 8320371a4b1e535120331c74f65b7b34cff1fa5c (diff) |
The list subcommand now prints jails in order of startup execution
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index 6efdfbc..4dd1829 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -290,8 +290,9 @@ delete) | |||
290 | ;; | 290 | ;; |
291 | ######################## ezjail-admin LIST ######################## | 291 | ######################## ezjail-admin LIST ######################## |
292 | list) | 292 | list) |
293 | jail_list=`ls ${ezjail_jailcfgs}` | 293 | ezjail_list=${ezjail_list:-`rcorder ${ezjail_prefix}/etc/ezjail/*`} |
294 | for jail in ${jail_list}; do | 294 | ezjail_list=`basename -a ${ezjail_list}` |
295 | for jail in ${ezjail_list}; do | ||
295 | . ${ezjail_jailcfgs}/${jail} | 296 | . ${ezjail_jailcfgs}/${jail} |
296 | eval jail_ip=\"\$jail_${jail}_ip\" | 297 | eval jail_ip=\"\$jail_${jail}_ip\" |
297 | eval jail_hostname=\"\$jail_${jail}_hostname\" | 298 | eval jail_hostname=\"\$jail_${jail}_hostname\" |