diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2021-05-31 14:34:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-31 14:34:18 +0300 |
commit | 5bce2d9a8196a90e9d3972b90934d79bad4bb8e1 (patch) | |
tree | 45e91dba22de9153370ade988ab2773e51899e77 | |
parent | 1d493f5f85d1cfae858f4ecc0aec423135618411 (diff) |
claiming: exit 0 when daemon not running and the claim was successful (#11195)
-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 137d112fc3..18813a6bab 100755 --- a/claim/netdata-claim.sh.in +++ b/claim/netdata-claim.sh.in @@ -418,7 +418,7 @@ HERE_DOC exit $EXIT_CODE fi echo >&2 "${PROXYMSG}The claim was successful but the agent could not be notified ($?)- it requires a restart to connect to the cloud." - exit 5 + [ "$NETDATA_RUNNING" -eq 0 ] && exit 0 || exit 5 fi echo >&2 "Failed to claim node with the following error message:\"${ERROR_MESSAGES[$EXIT_CODE]}\"" |