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
e203e983
Unverified
Commit
e203e983
authored
Nov 02, 2020
by
Sergey Pashinin
Browse files
Use _savedeployconf
parent
9fcd1040
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/vault.sh
View file @
e203e983
...
@@ -36,12 +36,14 @@ vault_deploy() {
...
@@ -36,12 +36,14 @@ vault_deploy() {
_err
"VAULT_PREFIX needs to be defined (contains prefix path in vault)"
_err
"VAULT_PREFIX needs to be defined (contains prefix path in vault)"
return
1
return
1
fi
fi
_savedeployconf VAULT_PREFIX
"
$VAULT_PREFIX
"
_getdeployconf VAULT_ADDR
_getdeployconf VAULT_ADDR
if
[
-z
"
$VAULT_ADDR
"
]
;
then
if
[
-z
"
$VAULT_ADDR
"
]
;
then
_err
"VAULT_ADDR needs to be defined (contains vault connection address)"
_err
"VAULT_ADDR needs to be defined (contains vault connection address)"
return
1
return
1
fi
fi
_savedeployconf VAULT_ADDR
"
$VAULT_ADDR
"
# JSON does not allow multiline strings.
# JSON does not allow multiline strings.
# So replacing new-lines with "\n" here
# So replacing new-lines with "\n" here
...
...
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