Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
S1OVS
openvpn-server
Commits
27c687bd
Commit
27c687bd
authored
Jun 30, 2022
by
Lindsay Harvey
Browse files
Fix ovs list-cert function not showing issued certificates properly
parent
aeac5382
Pipeline
#1618
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
functions.sh
View file @
27c687bd
...
...
@@ -214,8 +214,8 @@ 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-Za-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 ">"}'
grep
^V /var/lib/openvpn-server/openssl/index.txt |
awk
'!($1="")($2="")($4="")'
|
sed
's/^[ \t]*//'
|
sed
's/ *//'
|
sed
"s/[A-Za-z]*=//g"
|
awk
-F
"/"
'{print $1 "\t" $6 " <" $7 ">"}'
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment