File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
docker/mongodb-kubernetes-init-database/content Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ download_agent() {
115
115
esac
116
116
117
117
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:? } "
119
119
curl_opts=(
120
120
" ${base_url} /download/agent/automation/${AGENT_FILE} "
121
121
@@ -133,13 +133,11 @@ download_agent() {
133
133
curl_opts+=(" --cacert" " ${SSL_TRUSTED_MMS_SERVER_CERTIFICATE} " )
134
134
fi
135
135
136
- echo " Executing curl command: curl ${curl_opts[*]} "
137
136
if ! curl " ${curl_opts[@]} " & > " ${MMS_LOG_DIR} /curl.log" ; then
138
137
script_log " Error while downloading the Mongodb agent"
139
138
exit 1
140
139
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} "
143
141
rm " ${MMS_LOG_DIR} /curl.log" 2> /dev/null || true
144
142
145
143
script_log " The Mongodb Agent binary downloaded, unpacking"
You can’t perform that action at this time.
0 commit comments