From ddfd6c01bd50e0adaca950178d7da52780fd123d Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 16 Jul 2019 17:03:22 +0200 Subject: [PATCH] get_all_keys.sh: some minor changes. --- get_all_keys.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/get_all_keys.sh b/get_all_keys.sh index 4c05e6d..874b8ea 100755 --- a/get_all_keys.sh +++ b/get_all_keys.sh @@ -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