Ignore case for boolean vars

This commit is contained in:
Alexey Pustovalov 2021-04-13 08:16:43 -04:00
parent 0d524b9c29
commit d2db348009
3 changed files with 6 additions and 6 deletions

View File

@ -96,7 +96,7 @@ check_variables() {
db_tls_params() {
local result=""
if [ "${ZBX_DB_ENCRYPTION}" == "true" ]; then
if [ "${ZBX_DB_ENCRYPTION,,}" == "true" ]; then
result="--ssl"
if [ -n "${ZBX_DB_CA_FILE}" ]; then
@ -198,7 +198,7 @@ prepare_zbx_web_config() {
export ZBX_DB_KEY_FILE=${ZBX_DB_KEY_FILE}
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
export ZBX_DB_CA_FILE=${ZBX_DB_CA_FILE}
: ${ZBX_DB_VERIFY_HOST="false"}
: ${ZBX_DB_VERIFY_HOST:="false"}
export ZBX_DB_VERIFY_HOST=${ZBX_DB_VERIFY_HOST,,}
export ZBX_VAULTURL=${ZBX_VAULTURL}

View File

@ -96,7 +96,7 @@ check_variables() {
db_tls_params() {
local result=""
if [ "${ZBX_DB_ENCRYPTION}" == "true" ]; then
if [ "${ZBX_DB_ENCRYPTION,,}" == "true" ]; then
result="--ssl-mode=required"
if [ -n "${ZBX_DB_CA_FILE}" ]; then
@ -207,7 +207,7 @@ prepare_zbx_web_config() {
export ZBX_DB_KEY_FILE=${ZBX_DB_KEY_FILE}
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
export ZBX_DB_CA_FILE=${ZBX_DB_CA_FILE}
: ${ZBX_DB_VERIFY_HOST="false"}
: ${ZBX_DB_VERIFY_HOST:="false"}
export ZBX_DB_VERIFY_HOST=${ZBX_DB_VERIFY_HOST,,}
export ZBX_VAULTURL=${ZBX_VAULTURL}

View File

@ -96,7 +96,7 @@ check_variables() {
db_tls_params() {
local result=""
if [ "${ZBX_DB_ENCRYPTION}" == "true" ]; then
if [ "${ZBX_DB_ENCRYPTION,,}" == "true" ]; then
result="--ssl-mode=required"
if [ -n "${ZBX_DB_CA_FILE}" ]; then
@ -198,7 +198,7 @@ prepare_zbx_web_config() {
export ZBX_DB_KEY_FILE=${ZBX_DB_KEY_FILE}
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
export ZBX_DB_CA_FILE=${ZBX_DB_CA_FILE}
: ${ZBX_DB_VERIFY_HOST="false"}
: ${ZBX_DB_VERIFY_HOST:="false"}
export ZBX_DB_VERIFY_HOST=${ZBX_DB_VERIFY_HOST,,}
export ZBX_VAULTURL=${ZBX_VAULTURL}