diff --git a/setup.sh b/setup.sh index d5c0ce4..9ae4643 100755 --- a/setup.sh +++ b/setup.sh @@ -21,6 +21,7 @@ else echo "Downloading oneagent..." wget -O Dynatrace-OneAgent-Linux-1.265.137.sh "https://elw69065.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&flavor=default" --header="Authorization: Api-Token $1" echo "Verfiying signature" + # TODO: add grep so this script is oneagent version agnostic wget https://ca.dynatrace.com/dt-root.cert.pem ; ( echo 'Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha-256"; boundary="--SIGNED-INSTALLER"'; echo ; echo ; echo '----SIGNED-INSTALLER' ; cat Dynatrace-OneAgent-Linux-1.265.137.sh ) | openssl cms -verify -CAfile dt-root.cert.pem > /dev/null echo "Running dynatrace oneagent" sudo Dynatrace-OneAgent-Linux-1.265.137.sh --set-infra-only=false --set-app-log-content-access=true