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
ddf98f07
Commit
ddf98f07
authored
Jul 27, 2017
by
Matthew Smith
Browse files
Fix list cert for servers with space in server name
parent
3c3a53b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.sh
View file @
ddf98f07
...
...
@@ -144,8 +144,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 "--/--" $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}'
}
...
...
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