Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
S1OVS
openvpn-server
Commits
8da5c99b
Commit
8da5c99b
authored
Jun 01, 2018
by
Matthew Smith
Browse files
Fix get current certificates after it reverted to old code
parent
3ed15a73
Changes
1
Show whitespace changes
Inline
Side-by-side
functions.sh
View file @
8da5c99b
...
...
@@ -158,7 +158,8 @@ y" | \
#
function
get_current_certificates
()
{
grep
^V /var/lib/openvpn-server/openssl/index.txt |
awk
'{print $3 "--/--" $6, $7, $8, $9}'
|
sed
-e
"s|--/--[a-Z/ 0-9]*=|/|g"
-e
's/[[:space:]]*$//'
-e
's/emailAddress=//g'
|
awk
-F
"/"
'BEGIN {format = "%-6s %-35s %-45s \n" ; printf format, "Index", "User", "Email Address" ; printf format, "-----", "----", "-------------"}{printf format, $1, $2, $3}'
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 ">"}'
}
...
...
Write
Preview
Markdown
is supported
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