Commit 2d018da6 authored by Matthew Smith's avatar Matthew Smith
Browse files

Fix sed regex as [a-Z] doesn't work with the latest version of sed

parent 4cbe57ba
......@@ -165,7 +165,7 @@ y" | \
function get_current_certificates () {
echo "Index User <email address>"
grep ^V /var/lib/openvpn-server/openssl/index.txt | awk '{print $3 "/" $5}' | sed "s/[a-Z]*=//g" | awk -F "/" '{print $1 "\t" $6 " <" $7 ">"}'
grep ^V /var/lib/openvpn-server/openssl/index.txt | awk '{print $3 "/" $5}' | sed "s/[A-Za-z]*=//g" | awk -F "/" '{print $1 "\t" $6 " <" $7 ">"}'
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment