From b2ab7fc862e31da92576d51609f250701eb6e02c Mon Sep 17 00:00:00 2001 From: Orazio Date: Tue, 9 Jun 2020 15:45:38 +0200 Subject: [PATCH] Fix change from pull request #1000 that prevented 'pivpn -l' to show revoked client names --- scripts/openvpn/listOVPN.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openvpn/listOVPN.sh b/scripts/openvpn/listOVPN.sh index 1a7da35..c87ecfd 100755 --- a/scripts/openvpn/listOVPN.sh +++ b/scripts/openvpn/listOVPN.sh @@ -16,7 +16,7 @@ printf "\\e[4mStatus\\e[0m \t \\e[4mName\\e[0m\\e[0m \t \\e[4mExpiration\\e[ while read -r line || [ -n "$line" ]; do STATUS=$(echo "$line" | awk '{print $1}') - NAME=$(echo "$line" | awk '{print $5}' | awk -FCN= '{print $2}') + NAME=$(echo "$line" | 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