summaryrefslogtreecommitdiffstats
path: root/health/health_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'health/health_config.c')
-rw-r--r--health/health_config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/health/health_config.c b/health/health_config.c
index 35234df15..da71f13d8 100644
--- a/health/health_config.c
+++ b/health/health_config.c
@@ -485,10 +485,11 @@ char *health_edit_command_from_source(const char *source)
snprintfz(
buffer,
FILENAME_MAX,
- "sudo %s/edit-config health.d/%s=%s",
+ "sudo %s/edit-config health.d/%s=%s=%s",
netdata_configured_user_config_dir,
file_no_path + 1,
- temp);
+ temp,
+ localhost->registry_hostname);
} else
buffer[0] = '\0';