Browse Source

syntax fixes

dnsconf
Bob Belnap 7 years ago
parent
commit
b8418ced44
  1. 9
      deploy/vault.sh

9
deploy/vault.sh

@ -33,21 +33,18 @@ vault_deploy() {
_debug _cfullchain "$_cfullchain" _debug _cfullchain "$_cfullchain"
# validate required env vars # validate required env vars
if [ -z "$VAULT_PREFIX" ]
then
if [ -z "$VAULT_PREFIX" ]; then
_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
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
VAULT_CMD=$(which vault) VAULT_CMD=$(which vault)
if [ ! $? ]
then
if [ ! $? ]; then
_err "cannot find vault binary!" _err "cannot find vault binary!"
return 1 return 1
fi fi

Loading…
Cancel
Save