Fixed issue with VAULT_TOKEN variable

This commit is contained in:
Alexey Pustovalov
2021-11-04 15:42:05 +02:00
parent f63ebbdef8
commit 609b0ce86c
38 changed files with 62 additions and 58 deletions

View File

@ -144,7 +144,7 @@ update_zbx_config() {
update_config_var $ZBX_CONFIG "DBPort"
update_config_var $ZBX_CONFIG "DBPassword"
if [ -n "${VAULT_TOKEN}" ]; then
if [ -n "${VAULT_TOKEN}" ] && [ -n "${ZBX_VAULTURL}" ]; then
update_config_var $ZBX_CONFIG "VaultDBPath" "${ZBX_VAULTDBPATH}"
update_config_var $ZBX_CONFIG "VaultURL" "${ZBX_VAULTURL}"
else