Skip to content

Commit 37d09a7

Browse files
committed
Review fixes
1 parent 2c1f69d commit 37d09a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docker/mongodb-kubernetes-init-database/content/agent-launcher-lib.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ download_agent() {
115115
esac
116116

117117
script_log "Downloading Agent version: ${AGENT_VERSION}"
118-
script_log "Downloading a Mongodb Agent from ${base_url:?}/download/agent/automation/${AGENT_FILE}"
118+
script_log "Downloading a Mongodb Agent from ${base_url:?}"
119119
curl_opts=(
120120
"${base_url}/download/agent/automation/${AGENT_FILE}"
121121

@@ -133,13 +133,11 @@ download_agent() {
133133
curl_opts+=("--cacert" "${SSL_TRUSTED_MMS_SERVER_CERTIFICATE}")
134134
fi
135135

136-
echo "Executing curl command: curl ${curl_opts[*]}"
137136
if ! curl "${curl_opts[@]}" &>"${MMS_LOG_DIR}/curl.log"; then
138137
script_log "Error while downloading the Mongodb agent"
139138
exit 1
140139
fi
141-
142-
grep -v -E "bytes data\]|\[no content\]" "${MMS_LOG_DIR}/curl.log" | json_log 'agent-launcher-script' >>"${MDB_LOG_FILE_AGENT_LAUNCHER_SCRIPT}"
140+
json_log 'agent-launcher-script' <"${MMS_LOG_DIR}/curl.log" >>"${MDB_LOG_FILE_AGENT_LAUNCHER_SCRIPT}"
143141
rm "${MMS_LOG_DIR}/curl.log" 2>/dev/null || true
144142

145143
script_log "The Mongodb Agent binary downloaded, unpacking"

0 commit comments

Comments
 (0)