summaryrefslogtreecommitdiffstats
path: root/registry
diff options
context:
space:
mode:
authorladakis <ladakis@users.noreply.github.com>2019-07-04 16:27:22 +0300
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-07-04 15:27:22 +0200
commit1f51a653289745f11b0fe746c5af04fca2748994 (patch)
treec24fdb51a61a0039e08f0e5842f0f9e602b0b3ab /registry
parent9d41bd6ff2ae6b8c3b20605efc55275eae4af46d (diff)
alarm-notify.sh should respect the cloud base url setting (#6383)
Fixes #5791 This patch exports through netdata daemon as an environment variable the NETDATA_REGISTRY_CLOUD_BASE_URL in order for the alarm-notify.sh.in to be able to use it. Therefore we can skip the hardcoded reference to cloud URL inside the script.
Diffstat (limited to 'registry')
-rw-r--r--registry/registry_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/registry/registry_init.c b/registry/registry_init.c
index 3cf140deeb..e5e6668204 100644
--- a/registry/registry_init.c
+++ b/registry/registry_init.c
@@ -43,6 +43,7 @@ int registry_init(void) {
// netdata.cloud configuration, if cloud_base_url == "", cloud functionality is disabled.
registry.cloud_base_url = config_get(CONFIG_SECTION_CLOUD, "cloud base url", "https://netdata.cloud");
+ setenv("NETDATA_REGISTRY_CLOUD_BASE_URL", registry.cloud_base_url, 1);
setenv("NETDATA_REGISTRY_HOSTNAME", registry.hostname, 1);
setenv("NETDATA_REGISTRY_URL", registry.registry_to_announce, 1);