diff --git a/bkctld b/bkctld index 05ba7a7..0dcba68 100755 --- a/bkctld +++ b/bkctld @@ -116,6 +116,7 @@ case "${subcommand}" in ;; "status") jail_name="${2:-}" + printf '%-30s %-10s %-10s %-10s %-40s\n' 'Jail name' 'Status' 'Port' 'Retention policy (day/month)' 'IP' if [ "${jail_name}" = "all" ] || [ -z "${jail_name}" ]; then for jail in $("${LIBDIR}/bkctld-list"); do "${LIBDIR}/bkctld-${subcommand}" "${jail}" diff --git a/lib/bkctld-status b/lib/bkctld-status index e375610..e815927 100755 --- a/lib/bkctld-status +++ b/lib/bkctld-status @@ -18,7 +18,7 @@ incs_policy="0" if [ -r "${incs_policy_file}" ]; then days=$(grep "^\+" "${incs_policy_file}" | grep --count "day") months=$(grep "^\+" "${incs_policy_file}" | grep --count "month") - incs_policy="${days}d/${months}m" + incs_policy="${days}/${months}" fi status="OFF"