diff options
author | Andrew Moss <1043609+amoss@users.noreply.github.com> | 2020-03-31 13:07:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 13:07:24 +0200 |
commit | fe722cb2a48c074eb7e2739c5052a28d4aa97d56 (patch) | |
tree | 3e302830f3343346fcf2a7a0a979bab9ded34754 /aclk | |
parent | cf948d42c22093db5d5085b3b453f7bcc2d52ae3 (diff) |
Improve the behavior of claiming (#8516)
The default cloud url has been updated to app.netdata.cloud ready for the release. The claiming process now checks the current user executing claiming and refuses to perform the claim for the wrong user. If the current UID is 0 then claiming proceeds but the file ownership is adjusted to be the correct netdata user. The default expected user is `netdata` unless the script can identify the user from the current configuration. After the claiming script is executed the CLI is used to reload the claiming state.
Diffstat (limited to 'aclk')
-rw-r--r-- | aclk/agent_cloud_link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aclk/agent_cloud_link.c b/aclk/agent_cloud_link.c index f6223da571..39e07a309c 100644 --- a/aclk/agent_cloud_link.c +++ b/aclk/agent_cloud_link.c @@ -1321,7 +1321,7 @@ void *aclk_main(void *ptr) char *aclk_hostname = NULL; // Initializers are over-written but prevent gcc complaining about clobbering. char *aclk_port = NULL; uint32_t port_num = 0; - char *cloud_base_url = config_get(CONFIG_SECTION_CLOUD, "cloud base url", "https://netdata.cloud"); + char *cloud_base_url = config_get(CONFIG_SECTION_CLOUD, "cloud base url", DEFAULT_CLOUD_BASE_URL); if (aclk_decode_base_url(cloud_base_url, &aclk_hostname, &aclk_port)) { error("Configuration error - cannot use agent cloud link"); return NULL; |