From 069c22e6aeb950093c7cf2fc704d69ad7be22550 Mon Sep 17 00:00:00 2001
From: erdgeist <erdgeist@erdgeist.org>
Date: Fri, 8 Jan 2010 22:33:08 +0000
Subject: Rearrange space in ezjail-admin list... more needs to be done vor v6
 addresses.

---
 ezjail-admin | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/ezjail-admin b/ezjail-admin
index 4758e21..6ba5f27 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -730,8 +730,8 @@ list)
 
   [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && ezjail_list=`ls | xargs rcorder`
 
-  printf "%-3s %-5s %-15s %-28s %s\\n" STA JID IP Hostname "Root Directory"
-  echo   "--- ----- --------------- ---------------------------- -------------------------"
+  printf "%-3s %-4s %-15s %-30s %s\\n" STA JID IP Hostname "Root Directory"
+  echo   "--- ---- --------------- ---------------------------- -------------------------"
   for ezjail in ${ezjail_list}; do
     fetchjailinfo ${ezjail%.norun}
     case ${ezjail_imagetype} in simple) ezjail_state="I";; bde) ezjail_state="B";; eli) ezjail_state="E";; *) ezjail_state="D";; esac
@@ -745,7 +745,7 @@ list)
     TIFS=${IFS}; IFS=,; unset _multiline
     for ezjail_ip in ${ezjail_ips}; do
       if [ -z "${_multiline}" ]; then
-        printf "%-3s %-5s %-15s %-28s %s\\n" "${ezjail_state}" "${ezjail_id:-N/A}" "${ezjail_ip}" "${ezjail_hostname}" "${ezjail_rootdir}"
+        printf "%-3s %-4s %-15s %-30s %s\\n" "${ezjail_state}" "${ezjail_id:-N/A}" "${ezjail_ip}" "${ezjail_hostname}" "${ezjail_rootdir}"
         _multiline=yes
       else
         echo "          ${ezjail_ip}"
@@ -1392,7 +1392,6 @@ config)
 
   fi
 
-
   case "${ezjail_setrunnable}" in
     run)   [ "${ezjail_config}" = "${ezjail_config%.norun}" ] || mv "${ezjail_config}" "${ezjail_config%.norun}";;
     norun) [ "${ezjail_config}" = "${ezjail_config%.norun}" ] && mv "${ezjail_config}" "${ezjail_config}.norun" ;;
-- 
cgit v1.2.3