Use _getdeployconf for env vars

This commit is contained in:
Sergey Pashinin 2020-11-02 13:35:12 +03:00
parent f511a52705
commit 9fcd104065
No known key found for this signature in database
GPG Key ID: 3C0D84EA2D933E47
1 changed files with 2 additions and 0 deletions

View File

@ -31,11 +31,13 @@ vault_deploy() {
_debug _cfullchain "$_cfullchain"
# validate required env vars
_getdeployconf VAULT_PREFIX
if [ -z "$VAULT_PREFIX" ]; then
_err "VAULT_PREFIX needs to be defined (contains prefix path in vault)"
return 1
fi
_getdeployconf VAULT_ADDR
if [ -z "$VAULT_ADDR" ]; then
_err "VAULT_ADDR needs to be defined (contains vault connection address)"
return 1