mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-08 23:41:45 +00:00
syntax fixes
This commit is contained in:
parent
90e587a974
commit
b8418ced44
@ -33,21 +33,18 @@ vault_deploy() {
|
|||||||
_debug _cfullchain "$_cfullchain"
|
_debug _cfullchain "$_cfullchain"
|
||||||
|
|
||||||
# validate required env vars
|
# validate required env vars
|
||||||
if [ -z "$VAULT_PREFIX" ]
|
if [ -z "$VAULT_PREFIX" ]; then
|
||||||
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" ]
|
if [ -z "$VAULT_ADDR" ]; then
|
||||||
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 [ ! $? ]
|
if [ ! $? ]; then
|
||||||
then
|
|
||||||
_err "cannot find vault binary!"
|
_err "cannot find vault binary!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user