Skip to content

Commit

Permalink
Merge pull request #79 from Sahana-Bannigol-ML/master
Browse files Browse the repository at this point in the history
Issue: sfagent and fluentbit installation on arm64
  • Loading branch information
Deepa-Martin-ML authored Aug 1, 2023
2 parents 7ad0ab4 + 9eb4c33 commit 5e1cd66
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ INSTALL_MAT=0
RELEASEURL="https://api.github.com/repos/snappyflow/apm-agent/releases/latest"
SFTRACE_AGENT_x86_64="https://github.com/snappyflow/apm-agent/releases/download/latest/sftrace-agent.tar.gz"
FLUENT_CENTOS_6_BUILD="https://github.com/snappyflow/apm-agent/releases/download/centos6-td-agent-bit/fluentbit.tar.gz"


AGENTDIR="/opt/sfagent"
AGENTDIR_BKP="/opt/sfagent_bkp"
TDAGENTCONFDIR="/etc/td-agent-bit"
Expand Down Expand Up @@ -87,7 +89,7 @@ install_fluent_bit()
if [ "$SYSTEM_TYPE" = "systemd" ] && [ "$ARCH" != "aarch64" ] ; then
logit "download latest fluent-bit release $ARCH"
curl -sL https://api.github.com/repos/snappyflow/apm-agent/releases?per_page=500 \
| grep -w "browser_download_url"|grep fluentbit \
| grep -w "browser_download_url"|grep "download/fluentbit" \
| head -n 1 \
| cut -d":" -f 2,3 \
| tr -d '"' \
Expand All @@ -96,7 +98,7 @@ install_fluent_bit()
elif [ "$SYSTEM_TYPE" = "systemd" ] && [ "$ARCH" = "aarch64" ]; then
logit "download latest fluent-bit release $ARCH"
curl -sL https://api.github.com/repos/snappyflow/apm-agent/releases?per_page=500 \
| grep -w "browser_download_url"|grep fluent-bit-arm \
| grep -w "browser_download_url"|grep "download/fluent-bit-arm" \
| head -n 1 \
| cut -d":" -f 2,3 \
| tr -d '"' \
Expand Down Expand Up @@ -140,7 +142,7 @@ upgrade_fluent_bit()
if [ "$SYSTEM_TYPE" = "systemd" ] && [ "$ARCH" != "aarch64" ]; then
logit "download latest fluent-bit release for $ARCH"
curl -sL https://api.github.com/repos/snappyflow/apm-agent/releases?per_page=500 \
| grep -w "browser_download_url"|grep fluentbit \
| grep -w "browser_download_url"|grep "download/fluentbit" \
| head -n 1 \
| cut -d":" -f 2,3 \
| tr -d '"' \
Expand All @@ -149,7 +151,7 @@ upgrade_fluent_bit()
elif [ "$SYSTEM_TYPE" = "systemd" ] && [ "$ARCH" = "aarch64" ]; then
logit "download latest fluent-bit release for $ARCH"
curl -sL https://api.github.com/repos/snappyflow/apm-agent/releases?per_page=500 \
| grep -w "browser_download_url"|grep fluent-bit-arm \
| grep -w "browser_download_url"|grep "download/fluent-bit-arm" \
| head -n 1 \
| cut -d":" -f 2,3 \
| tr -d '"' \
Expand Down

0 comments on commit 5e1cd66

Please sign in to comment.