diff options
author | erdgeist <erdgeist@erdgeist.org> | 2005-09-22 18:14:43 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2005-09-22 18:14:43 +0000 |
commit | f21f248100fd5b680418604bbc84308b38590ef4 (patch) | |
tree | 3772d49942f0bf75e1a78502b6d05d7bf3d8c4bf | |
parent | 668c4dfc58490d61398ea3acdf1290f0579b8485 (diff) |
list works in a very basic mode
-rwxr-xr-x | ezjail-admin | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index ac12f18..ef046d2 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # ugly: this variable is set during port install time | 3 | # ugly: this variable is set during port install time |
4 | ezjail_prefix=EZJAIL_PREFIX | 4 | ezjail_prefix=/usr/local |
5 | ezjail_jailcfgs=${ezjail_prefix}/etc/ezjail | 5 | ezjail_jailcfgs=${ezjail_prefix}/etc/ezjail |
6 | 6 | ||
7 | if [ "0" != "`id -u`" ]; then | 7 | if [ "0" != "`id -u`" ]; then |
@@ -121,7 +121,12 @@ delete) | |||
121 | 121 | ||
122 | ;; | 122 | ;; |
123 | list) | 123 | list) |
124 | 124 | jail_list=`ls $ezjail_jailcfgs` | |
125 | for jail in $jail_list; do | ||
126 | . ${ezjail_jailcfgs}/$jail | ||
127 | eval jail_ip=\"\$jail_${jail}_ip\"; echo -n "$jail_ip " | ||
128 | eval jail_hostname=\"\$jail_${jail}_hostname\"; echo $jail_hostname | ||
129 | done | ||
125 | ;; | 130 | ;; |
126 | update) | 131 | update) |
127 | shift | 132 | shift |