Fixed SSL mode option for PostgreSQL

This commit is contained in:
Alexey Pustovalov
2022-05-25 01:49:10 +03:00
parent 2ec321e6de
commit ba129fd1fe
12 changed files with 48 additions and 24 deletions

View File

@ -99,7 +99,8 @@ check_db_connect() {
fi
if [ -n "${ZBX_DBTLSCONNECT}" ]; then
export PGSSLMODE=${ZBX_DBTLSCONNECT//_/-}
PGSSLMODE=${ZBX_DBTLSCONNECT//_/-}
export PGSSLMODE=${PGSSLMODE//required/require}
export PGSSLROOTCERT=${ZBX_DBTLSCAFILE}
export PGSSLCERT=${ZBX_DBTLSCERTFILE}
export PGSSLKEY=${ZBX_DBTLSKEYFILE}