diff options
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 7 |
1 files 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) | |||
730 | 730 | ||
731 | [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && ezjail_list=`ls | xargs rcorder` | 731 | [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && ezjail_list=`ls | xargs rcorder` |
732 | 732 | ||
733 | printf "%-3s %-5s %-15s %-28s %s\\n" STA JID IP Hostname "Root Directory" | 733 | printf "%-3s %-4s %-15s %-30s %s\\n" STA JID IP Hostname "Root Directory" |
734 | echo "--- ----- --------------- ---------------------------- -------------------------" | 734 | echo "--- ---- --------------- ---------------------------- -------------------------" |
735 | for ezjail in ${ezjail_list}; do | 735 | for ezjail in ${ezjail_list}; do |
736 | fetchjailinfo ${ezjail%.norun} | 736 | fetchjailinfo ${ezjail%.norun} |
737 | case ${ezjail_imagetype} in simple) ezjail_state="I";; bde) ezjail_state="B";; eli) ezjail_state="E";; *) ezjail_state="D";; esac | 737 | 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) | |||
745 | TIFS=${IFS}; IFS=,; unset _multiline | 745 | TIFS=${IFS}; IFS=,; unset _multiline |
746 | for ezjail_ip in ${ezjail_ips}; do | 746 | for ezjail_ip in ${ezjail_ips}; do |
747 | if [ -z "${_multiline}" ]; then | 747 | if [ -z "${_multiline}" ]; then |
748 | printf "%-3s %-5s %-15s %-28s %s\\n" "${ezjail_state}" "${ezjail_id:-N/A}" "${ezjail_ip}" "${ezjail_hostname}" "${ezjail_rootdir}" | 748 | printf "%-3s %-4s %-15s %-30s %s\\n" "${ezjail_state}" "${ezjail_id:-N/A}" "${ezjail_ip}" "${ezjail_hostname}" "${ezjail_rootdir}" |
749 | _multiline=yes | 749 | _multiline=yes |
750 | else | 750 | else |
751 | echo " ${ezjail_ip}" | 751 | echo " ${ezjail_ip}" |
@@ -1392,7 +1392,6 @@ config) | |||
1392 | 1392 | ||
1393 | fi | 1393 | fi |
1394 | 1394 | ||
1395 | |||
1396 | case "${ezjail_setrunnable}" in | 1395 | case "${ezjail_setrunnable}" in |
1397 | run) [ "${ezjail_config}" = "${ezjail_config%.norun}" ] || mv "${ezjail_config}" "${ezjail_config%.norun}";; | 1396 | run) [ "${ezjail_config}" = "${ezjail_config%.norun}" ] || mv "${ezjail_config}" "${ezjail_config%.norun}";; |
1398 | norun) [ "${ezjail_config}" = "${ezjail_config%.norun}" ] && mv "${ezjail_config}" "${ezjail_config}.norun" ;; | 1397 | norun) [ "${ezjail_config}" = "${ezjail_config%.norun}" ] && mv "${ezjail_config}" "${ezjail_config}.norun" ;; |