summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-04-01 18:27:52 +0000
committererdgeist <erdgeist@erdgeist.org>2006-04-01 18:27:52 +0000
commitcd8742e9dcff169861dd4d03eb637314da9f91d6 (patch)
treee53b5bb9787ef29d4b687155d401bc6a5e937cd6 /ezjail-admin
parent8320371a4b1e535120331c74f65b7b34cff1fa5c (diff)
The list subcommand now prints jails in order of startup execution
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin5
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 ########################
292list) 292list)
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\"