From 3a438a603581acb2d83d565a95b56503fc011d27 Mon Sep 17 00:00:00 2001 From: Swamy Goundar Date: Sat, 28 Mar 2020 20:46:45 -0700 Subject: [PATCH] Fixed Issue for Cert Names when OU is defined. --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 9790c03..c51061c 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1292,7 +1292,7 @@ printf "\\e[4mStatus\\e[0m :: \\e[4mName\\e[0m\\e[0m :: \\e[4mExpiratio while read -r line || [ -n "$line" ]; do STATUS=$(echo "$line" | awk '{print $1}') - NAME=$(echo "$line" | awk '{print $5}' | awk -F= '{print $2}') + NAME=$(echo "$line" | awk '{print $5}' | awk -FCN= '{print $2}') EXPD=$(echo "$line" | awk '{if (length($2) == 15) print $2; else print "20"$2}' | cut -b 1-8 | date +"%b %d %Y" -f -) if [ "${STATUS}" == "V" ]; then