File tree Expand file tree Collapse file tree
templates/entrypoints/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ set_mysql_cli() {
2929set_mysql_tls_args () {
3030 MYSQL_TLS_ARGS=()
3131
32+ [ " ${ZBX_DB_ENCRYPTION:- } " = " true" ] && export ZBX_DBTLSCONNECT=required
33+
3234 if [ -n " ${ZBX_DBTLSCONNECT:- } " ]; then
3335 if [ " ${DB_ENGINE} " = " mariadb" ]; then
3436 MYSQL_TLS_ARGS+=(--ssl)
@@ -38,7 +40,7 @@ set_mysql_tls_args() {
3840 fi
3941 else
4042 local ssl_mode=" ${ZBX_DBTLSCONNECT// verify_full/ verify_identity} "
41- MYSQL_TLS_ARGS+=(" --ssl=${ssl_mode} " )
43+ MYSQL_TLS_ARGS+=(" --ssl-mode =${ssl_mode} " )
4244 fi
4345
4446 if [ -n " ${ZBX_DBTLSCAFILE:- } " ]; then
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ set_pg_env() {
1010 export PGOPTIONS=" --search_path=${DB_SERVER_SCHEMA} "
1111 fi
1212
13+ [ " ${ZBX_DB_ENCRYPTION:- } " = " true" ] && export ZBX_DBTLSCONNECT=required
14+
1315 if [ -n " ${ZBX_DBTLSCONNECT:- } " ]; then
1416 local pg_sslmode
1517 pg_sslmode=" ${ZBX_DBTLSCONNECT// _/ -} "
You can’t perform that action at this time.
0 commit comments