diff options
-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 |