summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2005-09-22 18:14:43 +0000
committererdgeist <erdgeist@erdgeist.org>2005-09-22 18:14:43 +0000
commitf21f248100fd5b680418604bbc84308b38590ef4 (patch)
tree3772d49942f0bf75e1a78502b6d05d7bf3d8c4bf /ezjail-admin
parent668c4dfc58490d61398ea3acdf1290f0579b8485 (diff)
list works in a very basic mode
Diffstat (limited to 'ezjail-admin')
-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