Browse Source
Merge pull request #5159 from themarek/dev
improve compatibility with FreeBSD
pull/5183/head
neil
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
4 deletions
-
deploy/vault.sh
|
|
@ -70,10 +70,10 @@ vault_deploy() { |
|
|
|
|
|
|
|
# JSON does not allow multiline strings. |
|
|
|
# So replacing new-lines with "\n" here |
|
|
|
_ckey=$(sed -z 's/\n/\\n/g' <"$2") |
|
|
|
_ccert=$(sed -z 's/\n/\\n/g' <"$3") |
|
|
|
_cca=$(sed -z 's/\n/\\n/g' <"$4") |
|
|
|
_cfullchain=$(sed -z 's/\n/\\n/g' <"$5") |
|
|
|
_ckey=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$2") |
|
|
|
_ccert=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$3") |
|
|
|
_cca=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$4") |
|
|
|
_cfullchain=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$5") |
|
|
|
|
|
|
|
export _H1="X-Vault-Token: $VAULT_TOKEN" |
|
|
|
|
|
|
|