get_all_keys.sh: some minor changes.

This commit is contained in:
Christoph 2019-07-16 17:03:22 +02:00
parent 53c1600d3c
commit ddfd6c01bd

View File

@ -299,9 +299,11 @@ if [[ ${#all_arr[@]} -gt 0 ]]; then
echo " Serial: ${_val_arr[0]} CN: ${_val_arr[1]}"
fi
done
else
info "No keys for OpenVPN service \033[1m$service_name\033[m found."
fi
echo
blank_line
if [[ ${#revoked_arr[@]} -gt 0 ]]; then
echo ""
if $terminal ; then
@ -320,7 +322,7 @@ if [[ ${#revoked_arr[@]} -gt 0 ]]; then
done
fi
echo
blank_line
if [[ ${#active_arr[@]} -gt 0 ]]; then
echo ""
if $terminal ; then
@ -337,6 +339,8 @@ if [[ ${#active_arr[@]} -gt 0 ]]; then
echo " Serial: ${_val_arr[0]} CN: ${_val_arr[1]}"
fi
done
else
info "No active keys OpenVPN service \033[1m$service_name\033[m found."
fi
clean_up 0