summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezjail-admin9
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
4ezjail_prefix=EZJAIL_PREFIX 4ezjail_prefix=/usr/local
5ezjail_jailcfgs=${ezjail_prefix}/etc/ezjail 5ezjail_jailcfgs=${ezjail_prefix}/etc/ezjail
6 6
7if [ "0" != "`id -u`" ]; then 7if [ "0" != "`id -u`" ]; then
@@ -121,7 +121,12 @@ delete)
121 121
122 ;; 122 ;;
123list) 123list)
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 ;;
126update) 131update)
127 shift 132 shift