fix unicode
This commit is contained in:
parent
4b0ac8ea10
commit
9d64f04721
@ -29,7 +29,7 @@ echo "${DATE} : Récupération du token" | tee -a "${LOGFILE}"
|
|||||||
TOKEN=$(/usr/bin/vault write -field="token" auth/approle/login role_id="${ROLEID}" secret_id="${SECRETID}")
|
TOKEN=$(/usr/bin/vault write -field="token" auth/approle/login role_id="${ROLEID}" secret_id="${SECRETID}")
|
||||||
export VAULT_TOKEN="${TOKEN}"
|
export VAULT_TOKEN="${TOKEN}"
|
||||||
|
|
||||||
# Check if the node is the active one, if not we stop.
|
# Check if the node is the active one, if not we stop.
|
||||||
STANDBY=$(/usr/bin/vault read sys/health -format=json | jq '.data.standby')
|
STANDBY=$(/usr/bin/vault read sys/health -format=json | jq '.data.standby')
|
||||||
if [ ! "${STANDBY}" == "false" ]; then
|
if [ ! "${STANDBY}" == "false" ]; then
|
||||||
echo "${DATE} : Noeud en standby, on arrête le snapshot" | tee -a "${LOGFILE}"
|
echo "${DATE} : Noeud en standby, on arrête le snapshot" | tee -a "${LOGFILE}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user