Skip to content

Commit 98b72fa

Browse files
Rockawearegegunes
andauthored
K8SPSMDB-1024 fixed variable scope and make sure it always get sets (#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ş <[email protected]>
1 parent 3e90522 commit 98b72fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/pbm-entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ PBM_MONGODB_URI="mongodb://${PBM_AGENT_MONGODB_USERNAME}:${PBM_AGENT_MONGODB_PAS
44

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

1111
export PBM_MONGODB_URI

0 commit comments

Comments
 (0)