mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-12 00:28:50 +01:00
Ignore case for boolean vars
This commit is contained in:
parent
0d524b9c29
commit
d2db348009
@ -96,7 +96,7 @@ check_variables() {
|
|||||||
db_tls_params() {
|
db_tls_params() {
|
||||||
local result=""
|
local result=""
|
||||||
|
|
||||||
if [ "${ZBX_DB_ENCRYPTION}" == "true" ]; then
|
if [ "${ZBX_DB_ENCRYPTION,,}" == "true" ]; then
|
||||||
result="--ssl"
|
result="--ssl"
|
||||||
|
|
||||||
if [ -n "${ZBX_DB_CA_FILE}" ]; then
|
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_KEY_FILE=${ZBX_DB_KEY_FILE}
|
||||||
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
|
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
|
||||||
export ZBX_DB_CA_FILE=${ZBX_DB_CA_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_DB_VERIFY_HOST=${ZBX_DB_VERIFY_HOST,,}
|
||||||
|
|
||||||
export ZBX_VAULTURL=${ZBX_VAULTURL}
|
export ZBX_VAULTURL=${ZBX_VAULTURL}
|
||||||
|
@ -96,7 +96,7 @@ check_variables() {
|
|||||||
db_tls_params() {
|
db_tls_params() {
|
||||||
local result=""
|
local result=""
|
||||||
|
|
||||||
if [ "${ZBX_DB_ENCRYPTION}" == "true" ]; then
|
if [ "${ZBX_DB_ENCRYPTION,,}" == "true" ]; then
|
||||||
result="--ssl-mode=required"
|
result="--ssl-mode=required"
|
||||||
|
|
||||||
if [ -n "${ZBX_DB_CA_FILE}" ]; then
|
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_KEY_FILE=${ZBX_DB_KEY_FILE}
|
||||||
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
|
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
|
||||||
export ZBX_DB_CA_FILE=${ZBX_DB_CA_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_DB_VERIFY_HOST=${ZBX_DB_VERIFY_HOST,,}
|
||||||
|
|
||||||
export ZBX_VAULTURL=${ZBX_VAULTURL}
|
export ZBX_VAULTURL=${ZBX_VAULTURL}
|
||||||
|
@ -96,7 +96,7 @@ check_variables() {
|
|||||||
db_tls_params() {
|
db_tls_params() {
|
||||||
local result=""
|
local result=""
|
||||||
|
|
||||||
if [ "${ZBX_DB_ENCRYPTION}" == "true" ]; then
|
if [ "${ZBX_DB_ENCRYPTION,,}" == "true" ]; then
|
||||||
result="--ssl-mode=required"
|
result="--ssl-mode=required"
|
||||||
|
|
||||||
if [ -n "${ZBX_DB_CA_FILE}" ]; then
|
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_KEY_FILE=${ZBX_DB_KEY_FILE}
|
||||||
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
|
export ZBX_DB_CERT_FILE=${ZBX_DB_CERT_FILE}
|
||||||
export ZBX_DB_CA_FILE=${ZBX_DB_CA_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_DB_VERIFY_HOST=${ZBX_DB_VERIFY_HOST,,}
|
||||||
|
|
||||||
export ZBX_VAULTURL=${ZBX_VAULTURL}
|
export ZBX_VAULTURL=${ZBX_VAULTURL}
|
||||||
|
Loading…
Reference in New Issue
Block a user