Skip to content

Commit

Permalink
[Observability Onboarding] Fix Otel for x86_64 macs (elastic#194915)
Browse files Browse the repository at this point in the history
## Summary

Fixes elastic#194872 by adjusting the
way the arch is determined
  • Loading branch information
flash1293 authored Oct 4, 2024
1 parent 1a54aab commit 7c51f3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ rm ./otel.yml && cp ./otel_samples/platformlogs_hostmetrics.yml ./otel.yml && mk
id: 'mac',
name: 'Mac',
firstStepTitle: HOST_COMMAND,
content: `arch=$(if [[ $(arch) == "arm64" ]]; then echo "aarch64"; else echo $(arch); fi)
content: `arch=$(if [[ $(uname -m) == "arm64" ]]; then echo "aarch64"; else echo $(uname -m); fi)
curl --output elastic-distro-${agentVersion}-darwin-$arch.tar.gz --url https://${AGENT_CDN_BASE_URL}/elastic-agent-${agentVersion}-darwin-$arch.tar.gz --proto '=https' --tlsv1.2 -fOL && mkdir -p "elastic-distro-${agentVersion}-darwin-$arch" && tar -xvf elastic-distro-${agentVersion}-darwin-$arch.tar.gz -C "elastic-distro-${agentVersion}-darwin-$arch" --strip-components=1 && cd elastic-distro-${agentVersion}-darwin-$arch
Expand Down

0 comments on commit 7c51f3b

Please sign in to comment.