diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2021-03-16 12:38:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 12:38:16 +0100 |
commit | e7e5d0c37242d8457e4b2610a95effe0db5ca1b1 (patch) | |
tree | 133ea3a9c7d4d5403cc0e4dd4b43717102efabe1 /claim | |
parent | 2d2f249fd7cac711adc3b3ac204c83905ac631ad (diff) |
Adds ACLK-NG as fallback(#10315)
* adds a new implementation of ACLK written almost from scratch
* external dependencies only OpenSSL and JSON-C
* fallback for systems where ACLK Legacy can't build (for technical or philosophical reasons)
* can be forced to build by giving "--aclk-ng" to the installer
Diffstat (limited to 'claim')
-rw-r--r-- | claim/claim.c | 4 | ||||
-rwxr-xr-x | claim/netdata-claim.sh.in | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/claim/claim.c b/claim/claim.c index bb9316082f..9a3660f9e6 100644 --- a/claim/claim.c +++ b/claim/claim.c @@ -2,7 +2,11 @@ #include "claim.h" #include "../registry/registry_internals.h" +#ifndef ACLK_NG #include "../aclk/legacy/aclk_common.h" +#else +#include "../aclk/aclk.h" +#endif char *claiming_pending_arguments = NULL; diff --git a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in index d7a0ae1c30..b2c5242898 100755 --- a/claim/netdata-claim.sh.in +++ b/claim/netdata-claim.sh.in @@ -123,7 +123,7 @@ if [ "@enable_cloud_POST@" = "no" ]; then exit 3 fi # shellcheck disable=SC2050 -if [ "@can_enable_aclk_POST@" != "yes" ]; then +if [ "@enable_aclk_POST@" != "yes" ]; then echo >&2 "This agent was built without the dependencies for Cloud and cannot be claimed" exit 3 fi |