diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2021-03-09 15:05:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-09 15:05:26 +0100 |
commit | 713cc2d3292f79d715028c71bec5d92b8932750d (patch) | |
tree | d3b7e145c628c8224fabbf9e6c810d30493194d9 /claim/netdata-claim.sh.in | |
parent | dc365288d11a010650a6bd3c8de14222cc25368d (diff) |
fix claim behind proxy (#10734)
Diffstat (limited to 'claim/netdata-claim.sh.in')
-rwxr-xr-x | claim/netdata-claim.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in index c8364c1eff..d7a0ae1c30 100755 --- a/claim/netdata-claim.sh.in +++ b/claim/netdata-claim.sh.in @@ -372,7 +372,7 @@ case ${ERROR_KEY} in *) EXIT_CODE=7 ;; esac -HTTP_STATUS_CODE=$(grep "HTTP" "${CLAIMING_DIR}/tmpout.txt" | awk -F " " '{print $2}') +HTTP_STATUS_CODE=$(grep "HTTP" "${CLAIMING_DIR}/tmpout.txt" | tail -1 | awk -F " " '{print $2}') if [ "${HTTP_STATUS_CODE}" = "204" ] ; then EXIT_CODE=0 fi |