Skip to content

Commit

Permalink
K8SPSMDB-1024 fixed variable scope and make sure it always get sets (#…
Browse files Browse the repository at this point in the history
…1391)

* fixed variable scope and make sure it always get sets

* fixed variable scope and make sure it always get sets

* fixed variable scope and make sure it always get sets

---------

Co-authored-by: Ege Güneş <ege.gunes@percona.com>
  • Loading branch information
Rockawear and egegunes authored Dec 7, 2023
1 parent 3e90522 commit 98b72fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/pbm-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PBM_MONGODB_URI="mongodb://${PBM_AGENT_MONGODB_USERNAME}:${PBM_AGENT_MONGODB_PAS

MONGO_SSL_DIR=/etc/mongodb-ssl
if [[ -f "${MONGO_SSL_DIR}/tls.crt" ]] && [[ -f "${MONGO_SSL_DIR}/tls.key" ]]; then
cat "${MONGO_SSL_DIR}/tls.key" "${MONGO_SSL_DIR}/tls.crt" >/tmp/tls.pem
PBM_MONGODB_URI="${PBM_MONGODB_URI}&tls=true&tlsCertificateKeyFile=%2Ftmp%2Ftls.pem&tlsCAFile=${MONGO_SSL_DIR}%2Fca.crt&tlsInsecure=true"
cat "${MONGO_SSL_DIR}/tls.key" "${MONGO_SSL_DIR}/tls.crt" > /tmp/tls.pem
fi

export PBM_MONGODB_URI
Expand Down

0 comments on commit 98b72fa

Please sign in to comment.