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
ruanhaishen
Acme.Sh
Commits
b8d0d3c2
Commit
b8d0d3c2
authored
Dec 23, 2022
by
PMExtra
Browse files
improve chain.pem exists evaluating
parent
fe1bfe9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/vault.sh
View file @
b8d0d3c2
...
@@ -115,7 +115,7 @@ vault_deploy() {
...
@@ -115,7 +115,7 @@ vault_deploy() {
fi
fi
# To make it compatible with the wrong ca path `chain.pem` which was used in former versions
# To make it compatible with the wrong ca path `chain.pem` which was used in former versions
if
_get
"
$URL
/chain.pem"
>
/dev/null
;
then
if
_contains
"
$(
_get
"
$URL
/chain.pem"
)
"
"-----BEGIN CERTIFICATE-----"
;
then
_err
"The CA certificate has moved from chain.pem to ca.pem, if you don't depend on chain.pem anymore, you can delete it to avoid this warning"
_err
"The CA certificate has moved from chain.pem to ca.pem, if you don't depend on chain.pem anymore, you can delete it to avoid this warning"
_info
"Updating CA certificate to
$URL
/chain.pem for backward compatibility"
_info
"Updating CA certificate to
$URL
/chain.pem for backward compatibility"
if
[
-n
"
$VAULT_KV_V2
"
]
;
then
if
[
-n
"
$VAULT_KV_V2
"
]
;
then
...
...
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