Browse Source

Use _getdeployconf for env vars

Sergey Pashinin 5 years ago
parent
commit
9fcd104065
1 changed files with 2 additions and 0 deletions
  1. 2 0
      deploy/vault.sh

+ 2 - 0
deploy/vault.sh

@@ -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