diff --git a/web-apache-mysql/alpine/docker-entrypoint.sh b/web-apache-mysql/alpine/docker-entrypoint.sh index 42b325f0f..9932f6d38 100755 --- a/web-apache-mysql/alpine/docker-entrypoint.sh +++ b/web-apache-mysql/alpine/docker-entrypoint.sh @@ -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} diff --git a/web-apache-mysql/centos/docker-entrypoint.sh b/web-apache-mysql/centos/docker-entrypoint.sh index ad515e169..bc8bdfe4f 100755 --- a/web-apache-mysql/centos/docker-entrypoint.sh +++ b/web-apache-mysql/centos/docker-entrypoint.sh @@ -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} diff --git a/web-apache-mysql/ubuntu/docker-entrypoint.sh b/web-apache-mysql/ubuntu/docker-entrypoint.sh index 0a955ebb7..6358508d4 100755 --- a/web-apache-mysql/ubuntu/docker-entrypoint.sh +++ b/web-apache-mysql/ubuntu/docker-entrypoint.sh @@ -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}