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 /libnetdata/libnetdata.h | |
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 'libnetdata/libnetdata.h')
-rw-r--r-- | libnetdata/libnetdata.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |