From fe722cb2a48c074eb7e2739c5052a28d4aa97d56 Mon Sep 17 00:00:00 2001 From: Andrew Moss <1043609+amoss@users.noreply.github.com> Date: Tue, 31 Mar 2020 13:07:24 +0200 Subject: 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. --- libnetdata/libnetdata.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libnetdata') diff --git a/libnetdata/libnetdata.h b/libnetdata/libnetdata.h index a65a37e178..b7fa9d5aba 100644 --- a/libnetdata/libnetdata.h +++ b/libnetdata/libnetdata.h @@ -321,4 +321,7 @@ extern char *netdata_configured_host_prefix; #include "health/health.h" #include "string/utf8.h" +// BEWARE: Outside of the C code this also exists in alarm-notify.sh +#define DEFAULT_CLOUD_BASE_URL "https://app.netdata.cloud" + #endif // NETDATA_LIB_H -- cgit v1.2.3